ActiveMarkerGroup class

Active marker data bound to a marker group.

Inheritance

Constructors

ActiveMarkerGroup({required List<ChartMarker> markers, required String type, required MarkerDirection direction, String? id, MarkerProps props = const MarkerProps(), MarkerStyle style = const MarkerStyle(activeMarkerText: TextStyle(color: Colors.black, fontSize: 12, height: 1.4)), int? currentEpoch, String? profitAndLossText, VoidCallback? onTap, VoidCallback? onTapOutside})
Creates an active marker group with the same parameters as an ActiveMarker, in addition to the base MarkerGroup configuration.

Properties

currentEpoch int?
The current epoch timestamp, used for dynamic progress calculations. This value represents the last tick epoch and is used by marker painters to calculate progress animations, expiration states, and other time-dependent visual effects. For example, contract markers can use this to show the remaining duration as an animated progress arc.
finalinherited
direction MarkerDirection
Indicates marker group direction (up or down).
finalinherited
hashCode int
The hash code for this object.
no setterinherited
id String?
An optional identifier for the marker group. This can be used to reference or look up specific marker groups.
finalinherited
markers List<ChartMarker>
The list of ChartMarker objects that belong to this group. These markers are related to each other and are treated as a cohesive unit.
finalinherited
onTap VoidCallback?
Callback when the circular contract marker of the marker group is tapped.
finalinherited
onTapOutside VoidCallback?
Called when a tap occurs outside the active marker group.
final
profitAndLossText String?
The text to display in the profit and loss label.
finalinherited
props MarkerProps
Additional properties that can affect rendering behavior. For example, the hasPersistentBorders property determines whether barriers should be drawn even when they're outside the visible area.
finalinherited
runtimeType Type
A representation of the runtime type of the object.
no setterinherited
style MarkerStyle
The visual style to apply to markers in this group. This includes properties like colors, fonts, and sizes.
finalinherited
type String
The type of marker group, which determines how it's rendered. Different types of marker groups are handled by specialized MarkerGroupIconPainter implementations, such as TickMarkerIconPainter, DigitMarkerIconPainter, etc.
finalinherited

Methods

compareTo(covariant MarkerGroup other) int
Compares this marker group with another based on the epoch of their first markers. This is useful for sorting marker groups chronologically.
inherited
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