NavigationDestinationLabelBehavior enum Null safety

Specifies when each NavigationDestination's label should appear.

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

Constants

alwaysHide → const NavigationDestinationLabelBehavior

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

const NavigationDestinationLabelBehavior(1)
alwaysShow → const NavigationDestinationLabelBehavior

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

const NavigationDestinationLabelBehavior(0)
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.

const NavigationDestinationLabelBehavior(2)
values → const List<NavigationDestinationLabelBehavior>

A constant List of the values in this enum, in order of their declaration.

const List<NavigationDestinationLabelBehavior>

Properties

hashCode int
The hash code for this object. [...]
read-only, inherited
index int

The integer index of this enum.

final
runtimeType Type
A representation of the runtime type of the object.
read-only, inherited

Methods

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

Operators

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