NavigationDestinationLabelBehavior enum Null safety

Specifies when each NavigationDestination's label should appear.

This is used to determine the behavior of NavigationBar's destinations.

Inheritance

Constructors

const

Values

alwaysShow → const NavigationDestinationLabelBehavior

Always shows all of the labels under each navigation bar destination, selected and unselected.

NavigationDestinationLabelBehavior()
alwaysHide → const NavigationDestinationLabelBehavior

Never shows any of the labels under the navigation bar destinations, regardless of selected vs unselected.

NavigationDestinationLabelBehavior()
onlyShowSelected → const NavigationDestinationLabelBehavior

Only shows the labels of the selected navigation bar destination.

When a destination is unselected, the label will be faded out, and the icon will be centered.

When a destination is selected, the label will fade in and the label and icon will slide up so that they are both centered.

NavigationDestinationLabelBehavior()

Properties

hashCode int
The hash code for this object.
read-onlyinherited
index int
A numeric identifier for the enumerated value.
read-onlyinherited
runtimeType Type
A representation of the runtime type of the object.
read-onlyinherited

Methods

noSuchMethod(Invocation invocation) → dynamic
Invoked when a non-existent method or property is accessed.
inherited
toString() String
A string representation of this object.
inherited

Operators

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

Constants

values → const List<NavigationDestinationLabelBehavior>
A constant List of the values in this enum, in order of their declaration.
[alwaysShow, alwaysHide, onlyShowSelected]