CompassSettings class

Shows the compass on the map.

Constructors

CompassSettings({bool? enabled, OrnamentPosition? position, double? marginLeft, double? marginTop, double? marginRight, double? marginBottom, double? opacity, double? rotation, bool? visibility, bool? fadeWhenFacingNorth, bool? clickable, Uint8List? image})

Properties

clickable bool?
Whether the compass can be clicked and click events can be registered.
getter/setter pair
enabled bool?
Whether the compass is visible on the map.
getter/setter pair
fadeWhenFacingNorth bool?
Whether the compass fades out to invisible when facing north direction.
getter/setter pair
hashCode int
The hash code for this object.
no setterinherited
image Uint8List?
The compass image, the visual representation of the compass.
getter/setter pair
marginBottom double?
Defines the margin to the bottom that the compass icon honors. This property is specified in pixels.
getter/setter pair
marginLeft double?
Defines the margin to the left that the compass icon honors. This property is specified in pixels.
getter/setter pair
marginRight double?
Defines the margin to the right that the compass icon honors. This property is specified in pixels.
getter/setter pair
marginTop double?
Defines the margin to the top that the compass icon honors. This property is specified in pixels.
getter/setter pair
opacity double?
The alpha channel value of the compass image
getter/setter pair
position OrnamentPosition?
Defines where the compass is positioned on the map
getter/setter pair
rotation double?
The clockwise rotation value in degrees of the compass.
getter/setter pair
runtimeType Type
A representation of the runtime type of the object.
no setterinherited
visibility bool?
Whether the compass is displayed.
getter/setter pair

Methods

encode() Object
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

decode(Object result) CompassSettings