SafaehBranchNavItem class

One row of a SafaehBranchSidenav.

id identifies the row across rebuilds: a row whose id stays keeps its place while rows around it animate in or out. depth indents the row to show branching (0 for top-level, 1 for a section of the open item, 2 for a page inside that section).

Annotations

Constructors

SafaehBranchNavItem({required Key id, required String label, required VoidCallback onTap, IconData? icon, IconData? selectedIcon, Widget? leading, String? subtitle, int depth = 0, bool animateSelection = true})
const

Properties

animateSelection → bool
False makes the selection fill switch instantly, for a row that is selected as the rail changes context (it would otherwise flash).
final
depth → int
final
hashCode → int
The hash code for this object.
no setterinherited
icon → IconData?
Shown when not selected (and when selected, unless selectedIcon).
final
id → Key
final
label → String
final
leading → Widget?
A custom mark (an avatar) used instead of icon.
final
onTap → VoidCallback
final
runtimeType → Type
A representation of the runtime type of the object.
no setterinherited
selectedIcon → IconData?
final
subtitle → 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