RailAndBottomSettings class

The settings for the primary navigation rail in the NavigationScaffold.

Constructors

RailAndBottomSettings({Widget? leading, Widget? trailing, bool showMenuIcon = false, double groupAlignment = 0.0, bool addThemeSwitcherTrailingIcon = false, NavigationRailLabelType? labelType, required List<DestinationModel> destinations, required List<Widget> pages, NavigationTypeEnum type = NavigationTypeEnum.railAndBottomNavBar})
Creates a new RailAndBottomSettings.

Properties

addThemeSwitcherTrailingIcon bool
Determines whether to add a theme switcher button as the trailing widget in the navigation rail.
final
destinations List<DestinationModel>
A list of destinations to be displayed in the navigation menu.
finalinherited
groupAlignment double
The alignment of the navigation rail groups. -1.0 for top, 0.0 for center, and 1.0 for bottom.
final
hashCode int
The hash code for this object.
no setterinherited
labelType NavigationRailLabelType?
The type of label to display for the navigation rail destinations.
final
leading Widget?
An optional widget to display as the leading widget in the navigation rail.
final
pages List<Widget>
A list of widget pages to be displayed.
finalinherited
runtimeType Type
A representation of the runtime type of the object.
no setterinherited
showMenuIcon bool
Determines whether to show a menu icon button in the navigation rail.
final
trailing Widget?
An optional widget to display as the trailing widget in the navigation rail.
final
type NavigationTypeEnum
The type of navigation to be used.
finalinherited

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