PlTreeSelectNode class
One node of the tree a reader is choosing from.
A PlTreeNode's answers plus one more: whether the node is one of the answers or only the road to one.
Its label is a String and a PlTreeNode's is a Widget, which is the
same divergence PlTransferItem carries and it is here for the same reason.
The filter reads the label, and a node whose label the filter cannot read is
a node that disappears from a search it could never satisfy. Text is what
keeps every node searchable by construction — and it is also what the
trigger writes and what a screen reader is handed. The React build takes a
node instead and asks for a searchLabel beside it; there is no Intl-free
way to read the words out of a widget, so this side asks for the words.
Constructors
-
PlTreeSelectNode({required String id, required String label, Widget? icon, List<
PlTreeSelectNode> ? children, bool disabled = false, bool? selectable}) -
Creates a node.
const
Properties
-
children
→ List<
PlTreeSelectNode> ? -
Its own children. An empty list is a branch with nothing in it;
nullis a leaf. They are different things.final - disabled → bool
-
In the tree but not selectable, and not a stop for the arrow keys.
final
- hashCode → int
-
The hash code for this object.
no setterinherited
- icon → Widget?
-
A glyph before the label.
final
- id → String
-
What identifies it. Unique across the whole tree.
final
- label → String
-
What the row says, what the filter matches, and what the trigger writes.
final
- runtimeType → Type
-
A representation of the runtime type of the object.
no setterinherited
- selectable → bool?
-
Whether this node may itself be chosen.
final
Methods
-
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