DrawerController constructor

const DrawerController(
  1. {GlobalKey<State<StatefulWidget>>? key,
  2. required Widget child,
  3. required DrawerAlignment alignment,
  4. bool isDrawerOpen = false,
  5. DrawerCallback? drawerCallback,
  6. DragStartBehavior dragStartBehavior = DragStartBehavior.start,
  7. Color? scrimColor,
  8. double? edgeDragWidth,
  9. bool enableOpenDragGesture = true}
)

Creates a controller for a Drawer.

Rarely used directly.

The child argument 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,
}) : super(key: key);