YaruNavigationRailItem class

Inheritance

Constructors

YaruNavigationRailItem({Key? key, bool? selected, required Widget icon, Widget? label, String? tooltip, VoidCallback? onTap, required YaruNavigationRailStyle style, bool extendedSelectedIndicator = false, BorderRadiusGeometry? borderRadius, double? width})
const

Properties

borderRadius BorderRadiusGeometry?
Border radius of the selected background indicator.
final
extendedSelectedIndicator bool
If true, the selected background indicator will wrap the icon and the label. If false, it will only wrap the icon.
final
hashCode int
The hash code for this object.
no setterinherited
icon Widget
Icon widget, displayed beside the label.
final
key Key?
Controls how one widget replaces another widget in the tree.
finalinherited
label Widget?
Label widget, displayed beside the icon. If style is YaruNavigationRailStyle.compact, this property can be left null.
final
onTap VoidCallback?
Callback called when the tile is tapped.
final
runtimeType Type
A representation of the runtime type of the object.
no setterinherited
selected bool?
Whether the related page item is selected in the rail.
final
style YaruNavigationRailStyle
Style of this tile, see YaruNavigationRailStyle.
final
tooltip String?
Optional string tooltip. If not null a tooltip will be displayed on hover. It should describe the whole tile if possible.
final
width double?
Defines the width of this tile. If null, it will use default values, see YaruNavigationRailStyle.
final

Methods

createElement() StatefulElement
Creates a StatefulElement to manage this widget's location in the tree.
inherited
createState() State<YaruNavigationRailItem>
Creates the mutable state for this widget at a given location in the tree.
override
debugDescribeChildren() List<DiagnosticsNode>
Returns a list of DiagnosticsNode objects describing this node's children.
inherited
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
toStringDeep({String prefixLineOne = '', String? prefixOtherLines, DiagnosticLevel minLevel = DiagnosticLevel.debug}) String
Returns a string representation of this node and its descendants.
inherited
toStringShallow({String joiner = ', ', DiagnosticLevel minLevel = DiagnosticLevel.debug}) String
Returns a one-line detailed description of the object.
inherited
toStringShort() String
A short, textual description of this widget.
inherited

Operators

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