TreeNode class

Class for building nodes in a Tree.

Annotations

Constructors

TreeNode(String title, {WidgetBuilder? builder, List<TreeNode>? nodes})
Creates a tree node with the page title, and child or children.
const
TreeNode.child(String text, {WidgetBuilder? builder, GlobalKey<NavigatorState>? navigatorKey, String? defaultTitle, Map<String, WidgetBuilder>? routes, RouteFactory? onGenerateRoute, RouteFactory? onUnknownRoute, List<NavigatorObserver> navigatorObservers = const <NavigatorObserver>[]})
Creates a node with a default text and a Navigator history. See also:
factory
TreeNode.children(String text, {required List<TreeNode> children})
Creates a node with children and default text.
factory

Properties

builder WidgetBuilder?
The child in the node.
final
hashCode int
The hash code for this object.
no setterinherited
nodes List<TreeNode>?
The children in a node.
final
runtimeType Type
A representation of the runtime type of the object.
no setterinherited
title String
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