PaneItem class

The item used by NavigationView to display the tiles.

On PaneDisplayMode.compact, only item is displayed, and title is used as a tooltip. On the other display modes, item and title are displayed in a Row.

See also:

Inheritance

Constructors

PaneItem({required Widget icon, Widget? title})
Creates a pane item.

Properties

hashCode int
The hash code for this object.
no setterinherited
icon Widget
The icon used by this item.
final
itemKey GlobalKey<State<StatefulWidget>>
finalinherited
runtimeType Type
A representation of the runtime type of the object.
no setterinherited
title Widget?
The title used by this item. If the display mode is top or compact, this is shown as a tooltip. If it's open, this is shown by the side of the icon.
final

Methods

build(BuildContext context, bool selected, VoidCallback onPressed, {PaneDisplayMode? displayMode, bool showTextOnTop = true, bool autofocus = false}) Widget
Used to construct the pane items all around NavigationView. You can customize how the pane items should look like by overriding this method
debugFillProperties(DiagnosticPropertiesBuilder properties) → void
Add additional properties associated with the node.
inherited
noSuchMethod(Invocation invocation) → dynamic
Invoked when a nonexistent method or property is accessed.
inherited
toDiagnosticsNode({String? name, DiagnosticsTreeStyle? style}) DiagnosticsNode
Returns a debug representation of the object that is used by debugging tools and by DiagnosticsNode.toStringDeep.
inherited
toString({DiagnosticLevel minLevel = DiagnosticLevel.info}) String
A string representation of this object.
inherited
toStringShort() String
A brief description of this object, usually just the runtimeType and the hashCode.
inherited

Operators

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