TreePropagationSelectionModel<T> class

A MultiSelectionModel implementation that supports propagation selections to it children,

All the overrides are needed, because MultiSelectionModel is abstract class. Meaning, this class acts like DelegatingSelectionModel.

Used in TreeDropdownSelectComponent when 'auto-select-children' option in ess is turned true.

Inheritance

Constructors

TreePropagationSelectionModel(MultiSelectionModel<T> delegateModel, TreeSelectionOptions<T> _treeOptions)

Properties

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

Methods

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

Operators

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