ChartSelectionBrushState class

Current renderer-neutral state of a persistent interval-selection brush.

Annotations
  • @immutable
  • @ChartSurfaceExempt.new('Controller-mirrored runtime state, not an authoring configuration: the ' 'chart creates and updates this value after pointer, keyboard, semantic, ' 'view-state, or controller commands. Consumers configure persistence and ' 'initial bounds through ChartSelectionBrushConfig, then read this immutable ' 'snapshot from BravenChartController.')

Constructors

ChartSelectionBrushState({required ChartSelectionAcquisitionMode acquisitionMode, required ChartSelectionBrushRange range, ChartSelectionBrushBox? box, required bool visible})
const

Properties

acquisitionMode ChartSelectionAcquisitionMode
Whether the brush controls an X interval, Y interval, or rectangle.
final
box ChartSelectionBrushBox?
Current ordered two-dimensional data-domain bounds.
final
hashCode int
The hash code for this object.
no setteroverride
range ChartSelectionBrushRange
Current ordered data-domain interval.
final
runtimeType Type
A representation of the runtime type of the object.
no setterinherited
visible bool
Whether the brush geometry is currently painted and interactive.
final

Methods

copyWith({ChartSelectionAcquisitionMode? acquisitionMode, ChartSelectionBrushRange? range, ChartSelectionBrushBox? box, bool? visible}) ChartSelectionBrushState
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.
override