Overview
TheWonderData class is the primary data model for representing each of the Seven Wonders of the World in the Wonderous app. It contains comprehensive information including historical data, geographic coordinates, media references, and associated artifacts.
Location: lib/logic/data/wonder_data.dart:5
Class Definition
Properties
Basic Information
The type of wonder (e.g.,
WonderType.chichenItza, WonderType.tajMahal)The display title of the wonder
A subtitle or description of the wonder
The geographic region where the wonder is located
Timeline Information
The year construction or establishment began
The year construction or establishment ended
Starting year range for related artifacts
Ending year range for related artifacts
Geographic Data
Latitude coordinate of the wonder’s location
Longitude coordinate of the wonder’s location
Artifact Metadata
The culture associated with the wonder’s artifacts
Geolocation description for artifact searches
Content & Media
Primary historical information text
Secondary historical information text
Primary construction details text
Secondary construction details text
Primary location information text
Secondary location information text
Top portion of the first pull quote
Bottom portion of the first pull quote
Author attribution for the first pull quote
Second pull quote text
Author attribution for the second pull quote
First callout text for highlighted information
Second callout text for highlighted information
YouTube video ID for the wonder’s featured video
Caption text for the video
Caption text for the map display
Unsplash collection ID for loading related images
List of image identifiers for the wonder
List of interesting facts about the wonder
Events & Artifacts
Timeline events mapped by year to event description
List of artifact IDs used for highlight displays (internal use - used to assemble HighlightData)
List of artifact IDs used for collectible items (internal use - used to assemble CollectibleData)
Search Functionality
List of searchable content associated with the wonder
Suggested search terms for the wonder
Methods
titleWithBreaks
WonderType Enum
Location:lib/logic/data/wonder_type.dart:1
Wonder-Specific Data Classes
Each wonder has its own data class that extendsWonderData and provides specific values for that wonder.
ChichenItzaData
Location:lib/logic/data/wonders_data/chichen_itza_data.dart:7
Similar Classes
- ChristRedeemerData - Christ the Redeemer statue data
- ColosseumData - Roman Colosseum data
- GreatWallData - Great Wall of China data
- MachuPicchuData - Machu Picchu data
- PetraData - Petra data
- PyramidsGizaData - Pyramids of Giza data
- TajMahalData - Taj Mahal data
WonderData with wonder-specific values.
Usage Example
Related Models
- ArtifactData - Artifact information referenced by
highlightArtifactsandhiddenArtifacts - TimelineData - Timeline events structure used in
eventsproperty - CollectibleData - Collectible items created from
hiddenArtifacts - SearchData - Search content structure (defined in
lib/logic/data/wonders_data/search/search_data.dart)