MapSectionProps class
Map section component properties.
Constructors
-
MapSectionProps({required String title, String? subtitle, required List<
MapLocation> locations, Map<String, MapRegionConfig> regions = const {}, MapStyle mapStyle = const MapStyle(), bool showLocationPanel = true, String locationPanelTitle = 'Server Locations', bool showMapTabs = true, Widget tooltipBuilder(MapLocation)?, void onLocationSelect(MapLocation)?, String height = '520px'}) -
const
Properties
- hashCode → int
-
The hash code for this object.
no setterinherited
- height → String
-
Height of the map container (CSS value).
final
- locationPanelTitle → String
-
Location panel title (default: "Server Locations").
final
-
locations
→ List<
MapLocation> -
Location data to display on the map.
final
- mapStyle → MapStyle
-
Map style configuration.
final
- onLocationSelect → void Function(MapLocation)?
-
Callback when a location is selected.
final
-
regions
→ Map<
String, MapRegionConfig> -
Region configurations for grouping and coloring.
Keys should match
MapLocation.regionvalues.final - runtimeType → Type
-
A representation of the runtime type of the object.
no setterinherited
- showLocationPanel → bool
-
Whether to show the location list panel.
final
- showMapTabs → bool
-
Whether to show tabs for different map types (World, USA, etc.).
final
- subtitle → String?
-
Optional subtitle/description.
final
- title → String
-
Section title (e.g., "Global Coverage").
final
- tooltipBuilder → Widget Function(MapLocation)?
-
Custom tooltip builder for location pins.
final
Methods
-
noSuchMethod(
Invocation invocation) → dynamic -
Invoked when a nonexistent method or property is accessed.
inherited
-
toString(
) → String -
A string representation of this object.
inherited
Operators
-
operator ==(
Object other) → bool -
The equality operator.
inherited