GlobeRegion class

Constructors

GlobeRegion({required String id, required String name, required List<List<List<List<double>>>> polygons, Color borderColor = const Color(0xFFFFFFFF), double borderWidth = 1.0, Color? fillColor, Color? highlightColor, bool isVisible = true, List<String> clipAgainst = const []})
const
GlobeRegion.fromCoordinates({required String id, required String name, required dynamic polygons, Color borderColor = const Color(0xFFFFFFFF), double borderWidth = 1.0, Color? fillColor, Color? highlightColor, bool isVisible = true, List<String> clipAgainst = const []})
Factory constructor that accepts either 3-level or 4-level polygon lists and automatically normalizes them into standard 4-level structure.
factory

Properties

borderColor → Color
final
borderWidth → double
final
clipAgainst → List<String>
List of region IDs to clip this region's outline against. Used to resolve border overlaps (e.g. PK/CN clipping against IN).
final
fillColor → Color?
final
hashCode → int
The hash code for this object.
no setterinherited
highlightColor → Color?
final
id → String
final
isVisible → bool
final
name → String
final
polygons → List<List<List<List<double>>>>
Polygons comprising this region.
final
runtimeType → Type
A representation of the runtime type of the object.
no setterinherited

Methods

copyWith({String? id, String? name, List<List<List<List<double>>>>? polygons, Color? borderColor, double? borderWidth, Color? fillColor, Color? highlightColor, bool? isVisible, List<String>? clipAgainst, bool clearFillColor = false, bool clearHighlightColor = false}) → GlobeRegion
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

Static Methods

normalizePolygons(dynamic input) → List<List<List<List<double>>>>
Normalizes dynamic polygon input into standard 4-level coordinates: [polygon][ring][point][lon, lat].