DrawerController constructor

const DrawerController({GlobalKey<State<StatefulWidget>> key, @required Widget child, @required DrawerAlignment alignment, DrawerCallback drawerCallback })

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.drawerCallback,
}) : assert(child != null),
     assert(alignment != null),
     super(key: key);