NavigationSidebarController<T> class

Inheritance

Constructors

Properties

active NavNodeId?
no setter
activeValue → T?
The strongly-typed value behind the active node, or null.
no setter
collapsed bool
getter/setter pair
drawerOpen bool
getter/setter pair
filtering bool
no setter
hashCode int
The hash code for this object.
no setterinherited
hasListeners bool
Whether any listeners are currently registered.
no setterinherited
query String
no setter
runtimeType Type
A representation of the runtime type of the object.
no setterinherited
sections List<NavSection<T>>
no setter

Methods

addListener(VoidCallback listener) → void
Register a closure to be called when the object changes.
inherited
closeDrawer() → void
collapse(NavNodeId id) → void
collapseAll() → void
dispose() → void
Discards any resources used by the object.
inherited
expand(NavNodeId id) → void
expandAll() → void
isActive(NavNodeId id) bool
isExpanded(NavNodeId id) bool
matchSet() Set<NavNodeId>
Ids that match the current query, plus their ancestors (so the matches are reachable). Empty when not filtering.
Make id the active destination. Auto-opens its ancestor modules and closes the mobile drawer (so a drawer tap navigates and dismisses).
node(NavNodeId id) NavNode<T>?
noSuchMethod(Invocation invocation) → dynamic
Invoked when a nonexistent method or property is accessed.
inherited
notifyListeners() → void
Call all the registered listeners.
inherited
openDrawer() → void
ownsActive(NavNodeId id) bool
Whether id is on the path to the active node (used to accent-tint an ancestor module/group even while the leaf itself is the active row).
removeListener(VoidCallback listener) → void
Remove a previously registered closure from the list of closures that are notified when the object changes.
inherited
replaceSections(List<NavSection<T>> sections) → void
Replace the whole section forest (e.g. permissions changed).
setQuery(String q) → void
toggleCollapsed() → void
toggleDrawer() → void
toggleNode(NavNodeId id) → void
toString() String
A string representation of this object.
inherited

Operators

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

Static Methods

of<T>(BuildContext context) NavigationSidebarController<T>?