MutableSelectionModel<D> class

A SelectionModel that can be updated.

This model will notify listeners subscribed to this model when the selection is modified.

Inheritance

Constructors

MutableSelectionModel()

Properties

hasAnySelection bool
Returns true if this SelectionModel has a selected datum or series.
no setterinherited
hasDatumSelection bool
Returns true if this SelectionModel has a selected datum.
no setterinherited
hashCode int
The hash code for this object.
no setterinherited
hasSeriesSelection bool
Returns true if this SelectionModel has a selected series.
no setterinherited
locked bool
When set to true, prevents the model from being updated.
getter/setter pair
runtimeType Type
A representation of the runtime type of the object.
no setterinherited
selectedDatum List<SeriesDatum<D>>
Returns the selected SeriesDatum for this SelectionModel.
no setterinherited
selectedSeries List<ImmutableSeries<D>>
Returns the selected ImmutableSeries for this SelectionModel.
no setterinherited

Methods

addSelectionChangedListener(SelectionModelListener<D> listener) → void
Add a listener to be notified when this SelectionModel changes.
addSelectionLockChangedListener(SelectionModelListener<D> listener) → void
Add a listener to be notified when this SelectionModel is locked.
addSelectionUpdatedListener(SelectionModelListener<D> listener) → void
Add a listener to be notified when updateSelection is called, even if the selection state is the same.
clearAllListeners() → void
Remove all listeners.
clearSelection({bool notifyListeners = true}) bool
Clears the selection state.
isDatumSelected(ImmutableSeries<D> series, int? index) bool
inherited
noSuchMethod(Invocation invocation) → dynamic
Invoked when a nonexistent method or property is accessed.
inherited
removeSelectionChangedListener(SelectionModelListener<D> listener) → void
Remove listener from being notified when this SelectionModel changes.
removeSelectionLockChangedListener(SelectionModelListener<D> listener) → void
Remove listener from being notified when this SelectionModel is locked.
removeSelectionUpdatedListener(SelectionModelListener<D> listener) → void
Remove listener from being notified when updateSelection is called.
toString() String
A string representation of this object.
inherited
updateSelection(List<SeriesDatum<D>> datumSelection, List<ImmutableSeries<D>> seriesList, {bool notifyListeners = true}) bool
Updates the selection state. If mouse driven, datumSelection should be ordered by distance from mouse, closest first.

Operators

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