TreeSelectionMixin<T> class
abstract
A mixin created to support tree-based selection options.
When mixin this component, one should override the getHierarchyMap() method in order for the functionality to work.
- Implemented types
-
- Parent<
T, List< OptionGroup< >T> >
- Parent<
- Implementers
Constructors
Properties
- hashCode → int
-
The hash code for this object.
no setterinherited
- runtimeType → Type
-
A representation of the runtime type of the object.
no setterinherited
Methods
-
allChildrenOf(
T e) → List< T> - Gets a flat list of T when given a parent of type T.
-
childrenOf(
T parent, [Object? filterQuery]) → DisposableFuture< List< OptionGroup< >T> > -
Returns the children of the parent and filter the results based of the
query if supported.
inherited
-
flatOptionGroup(
) → List< OptionGroup< T> > - Flatten all the OptionGroups of the tree into one long list.
-
getHierarchyMap(
) → Map< T, List< OptionGroup< >T> > - Returns the hierarchy map data of the tree.
-
getParent(
T value) → T? - Returns the parent of the given value
-
hasChildren(
T item) → bool -
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