DelegatingSelectionModel<T> class

A delegating implementation of SelectionModel.

Implemented types
Mixed-in types
Implementers

Constructors

DelegatingSelectionModel(SelectionModel<T> _delegateModel)

Properties

changes Stream<List<ChangeRecord>>
Emits a list of changes when the state of the object changes.
no setter
hashCode int
The hash code for this object.
no setterinherited
hasObservers bool
True if this object has any observers.
no setter
hasSelectionObservers bool
Returns true if a subscriber is listening to selectionChanges.
no setteroverride
isEmpty bool
Returns true if selection is empty.
no setteroverride
isNotEmpty bool
Returns true if selection is not empty.
no setteroverride
isSingleSelect bool
Whether or not the selection model is single select.
getter/setter pairoverride-getter
runtimeType Type
A representation of the runtime type of the object.
no setterinherited
selectedValues Iterable<T>
Returns ordered list of selected values.
no setteroverride
selectionChanges Stream<List<SelectionChangeRecord<T>>>
A stream that returns changes to selected elements.
no setteroverride

Methods

castIterable(Iterable values) Iterable<T>
Casts values into an Iterable
inherited
clear() → void
Clears selection.
override
deliverChanges() bool
If hasObservers, synchronously emits changes that have been queued.
deliverSelectionChanges() bool
Synchronously deliver all SelectionChangeRecords.
override
deselect(T value) bool
Removes a value from list of selected items.
override
isSelected(T value) bool
Returns whether an item is selected.
override
noSuchMethod(Invocation invocation) → dynamic
Invoked when a nonexistent method or property is accessed.
inherited
notifyChange([ChangeRecord? changeRecord]) → void
Schedules change to be delivered.
notifyPropertyChange<S>(Symbol field, S oldValue, S newValue) → S
Notify that the field name of this object has been changed.
notifySelectionChange({Iterable<T> added = const [], Iterable<T> removed = const []}) → void
Schedules a SelectionChangeRecord.
override
observed() → void
May override to be notified when changes is first observed.
select(T value) bool
Adds value to list of selected items.
override
toString() String
A string representation of this object.
inherited
unobserved() → void
May override to be notified when changes is no longer observed.

Operators

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