PointConnectionStyle class

Represents the style of point connection.

Modeled after Globe.GL's arc styling with properties for:

  • Dash animation timing (arcDashAnimateTime)
  • Arc altitude (arcAltitude)
  • Transition animations (arcsTransitionDuration)

Constructors

PointConnectionStyle({PointConnectionType type = PointConnectionType.solid, Color color = Colors.white, double dotSize = 1, double lineWidth = 1, double dashSize = 4, double spacing = 8, int dashAnimateTime = 0, int transitionDuration = 500, bool animateOnAdd = true, int growthAnimationDuration = 1000})
Creates a new instance of PointConnectionStyle.
const
PointConnectionStyle.fromJson(String source)
Creates a PointConnectionStyle object from a JSON string.
factory
PointConnectionStyle.fromMap(Map<String, dynamic> map)
Creates a PointConnectionStyle object from a map.
factory

Properties

animateOnAdd → bool
Whether the arc should animate growing from start to end when first appearing. Similar to Globe.GL's arc stroke animation.
final
color → Color
The color of the connection.
final
dashAnimateTime → int
Time in milliseconds for a dash to travel the full arc length. Set to 0 to disable dash animation. Similar to Globe.GL's arcDashAnimateTime.
final
dashSize → double
The size of the dashes in the connection.
final
dotSize → double
The size of the dots in the connection.
final
growthAnimationDuration → int
Duration in milliseconds for the arc growth animation.
final
hashCode → int
The hash code for this object.
no setterinherited
lineWidth → double
The width of the line in the connection.
final
runtimeType → Type
A representation of the runtime type of the object.
no setterinherited
spacing → double
The spacing between dots in the connection.
final
transitionDuration → int
Duration in milliseconds for the arc to animate when appearing/disappearing. Similar to Globe.GL's arcsTransitionDuration.
final
type → PointConnectionType
The type of connection.
final

Methods

copyWith({PointConnectionType? type, double? dotSize, double? spacing, double? dashSize, double? lineWidth, Color? color, int? dashAnimateTime, int? transitionDuration, bool? animateOnAdd, int? growthAnimationDuration}) → PointConnectionStyle
Creates a copy of PointConnectionStyle with optionally updated properties.
noSuchMethod(Invocation invocation) → dynamic
Invoked when a nonexistent method or property is accessed.
inherited
toJson() → String
Converts the PointConnectionStyle object to a JSON string.
toMap() → Map<String, dynamic>
Converts the PointConnectionStyle object to a map.
toString() → String
A string representation of this object.
inherited

Operators

operator ==(Object other) → bool
The equality operator.
inherited