DrawerOptions class

Constructors

DrawerOptions({List<Widget> headers(AnimationController expansion)?, List<Widget> footer(AnimationController expansion)?, Color? backgroundColor, DecorationImage? image, Gradient? gradient, SliverPersistentHeaderDelegate buildDrawer(VoidCallback toggle, AnimationController expansion)?, Widget buildDesktop(Widget child, bool collapsed)?, Widget buildMobile(Widget child)?})
const

Properties

backgroundColor Color?
The color to fill in the background of the box.
final
buildDesktop → (Widget Function(Widget child, bool collapsed)?)
final
buildDrawer → (SliverPersistentHeaderDelegate Function(VoidCallback toggle, AnimationController expansion)?)
override the default drawer icon
final
buildMobile → (Widget Function(Widget child)?)
final
drawer footer widgets
final
gradient Gradient?
A gradient to use when filling the box.
final
hashCode int
The hash code for this object.
no setterinherited
headers → (List<Widget> Function(AnimationController expansion)?)
drawer top header widgets
final
image DecorationImage?
An image to paint above the background color or gradient.
final
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