GlobeGridStyle class
Configuration for geographic graticule grid lines (latitudes, longitudes, equator).
- Annotations
Constructors
- GlobeGridStyle({bool visible = true, Color color = const Color(0x3394A3B8), double strokeWidth = 0.8, double latitudeInterval = 30.0, double longitudeInterval = 30.0, bool highlightEquator = true, bool highlightPrimeMeridian = true, Color equatorColor = const Color(0x6638BDF8)})
-
Creates graticule styling; add a GlobeGridLayer to render it.
const
Properties
- color → Color
-
Primary color for this visual component.
final
- equatorColor → Color
-
Color for emphasized equator and prime-meridian lines.
final
- hashCode → int
-
The hash code for this object.
no setterinherited
- highlightEquator → bool
-
Whether an equator line receives emphasis when included in the grid.
final
- highlightPrimeMeridian → bool
-
Whether the prime-meridian line receives emphasis.
final
- latitudeInterval → double
-
Spacing of parallels in degrees; renderer clamps to (10 to 90).
final
- longitudeInterval → double
-
Spacing of meridians in degrees; renderer clamps to (10 to 180).
final
- runtimeType → Type
-
A representation of the runtime type of the object.
no setterinherited
- strokeWidth → double
-
Stroke width in logical pixels; use a nonnegative finite value.
final
- visible → bool
-
Whether this visual component is drawn.
final
Methods
-
copyWith(
{bool? visible, Color? color, double? strokeWidth, double? latitudeInterval, double? longitudeInterval, bool? highlightEquator, bool? highlightPrimeMeridian, Color? equatorColor}) → GlobeGridStyle - Copies these tokens, retaining any field whose argument is omitted.
-
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
-
lerp(
GlobeGridStyle a, GlobeGridStyle b, double t) → GlobeGridStyle - Linearly interpolates between two GlobeGridStyle instances.