DrawerNavigationBuilder class

A NavigatorBuilder that allows to switch between destinations using Drawer.

It builds a wrapper widget, which is a Scaffold with a Scaffold.body set to the current destination's content, and Scaffold.drawer specified.

The drawerItems must correspond to the navigator's destinations.

The drawer can be customized using parameters, which includes all parameters supported by the Drawer widget.

See also:

Inheritance

Constructors

DrawerNavigationBuilder({required List<DrawerItem> drawerItems, Widget? header, DrawerParameters? parameters})
Creates a DrawerNavigationBuilder instance.
const

Properties

drawerItems List<DrawerItem>
A list of DrawerItems, that corresponds to the navigator's destination list.
final
hashCode int
The hash code for this object.
no setterinherited
Optional header, that is shown at the top of drawer.
final
keepStateInParameters KeepingStateInParameters
Automatic persisting of upward destination.
finalinherited
parameters DrawerParameters?
A set of Drawer` parameters.
final
runtimeType Type
A representation of the runtime type of the object.
no setterinherited

Methods

build(BuildContext context, NavigationController navigator) Widget
Returns a widget that wraps a content of navigator's destinations.
override
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