DrawerController constructor Null safety
- {GlobalKey<
State< ? key,StatefulWidget> > - required Widget child,
- required DrawerAlignment alignment,
- bool isDrawerOpen = false,
- DrawerCallback? drawerCallback,
- DragStartBehavior dragStartBehavior = DragStartBehavior.start,
- Color? scrimColor,
- double? edgeDragWidth,
- bool enableOpenDragGesture = true}
Creates a controller for a Drawer.
Rarely used directly.
The child argument must not be null and is typically a Drawer.
Implementation
const DrawerController({
GlobalKey? key,
required this.child,
required this.alignment,
this.isDrawerOpen = false,
this.drawerCallback,
this.dragStartBehavior = DragStartBehavior.start,
this.scrimColor,
this.edgeDragWidth,
this.enableOpenDragGesture = true,
}) : assert(child != null),
assert(dragStartBehavior != null),
assert(alignment != null),
super(key: key);