NavigationBarAlignment enum

Enumeration defining alignment options for navigation bar items.

This enum provides various alignment strategies for positioning navigation items within the available space, corresponding to Flutter's MainAxisAlignment options but specifically tailored for navigation contexts.

Inheritance
Available extensions

Values

start → const NavigationBarAlignment

Align items to the start of the navigation bar.

const NavigationBarAlignment(MainAxisAlignment.start)
center → const NavigationBarAlignment

Center items within the navigation bar.

const NavigationBarAlignment(MainAxisAlignment.center)
end → const NavigationBarAlignment

Align items to the end of the navigation bar.

const NavigationBarAlignment(MainAxisAlignment.end)
spaceBetween → const NavigationBarAlignment

Distribute items with space between them.

const NavigationBarAlignment(MainAxisAlignment.spaceBetween)
spaceAround → const NavigationBarAlignment

Distribute items with space around them.

const NavigationBarAlignment(MainAxisAlignment.spaceAround)
spaceEvenly → const NavigationBarAlignment

Distribute items with equal space between and around them.

const NavigationBarAlignment(MainAxisAlignment.spaceEvenly)

Properties

hashCode int
The hash code for this object.
no setterinherited
index int
A numeric identifier for the enumerated value.
no setterinherited
mainAxisAlignment MainAxisAlignment
The corresponding MainAxisAlignment value.
final
name String

Available on Enum, provided by the EnumName extension

The name of the enum value.
no setter
runtimeType Type
A representation of the runtime type of the object.
no setterinherited

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

Constants

values → const List<NavigationBarAlignment>
A constant List of the values in this enum, in order of their declaration.