BaseDrawer constructor

const BaseDrawer(
  1. {Key key,
  2. Duration duration = _drawerTransitionDuration,
  3. AxisDirection axisDirection = AxisDirection.right,
  4. Size size,
  5. double percent,
  6. Color backgroundColor = _drawerBackgroundColor,
  7. @required Widget child,
  8. Curve curve = Curves.linearToEaseOut,
  9. Curve reverseCurve = Curves.linearToEaseOut,
  10. bool allowGesture = true,
  11. bool allowMultipleGesture = false,
  12. bool barrierDismissible = true}
)

Implementation

const BaseDrawer({
  Key key,
  this.duration = _drawerTransitionDuration,
  this.axisDirection = AxisDirection.right,
  this.size,
  this.percent,
  this.backgroundColor = _drawerBackgroundColor,
  @required this.child,
  this.curve = Curves.linearToEaseOut,
  this.reverseCurve = Curves.linearToEaseOut,
  this.allowGesture = true,
  this.allowMultipleGesture = false,
  this.barrierDismissible = true,
})  : assert(size == null || percent == null,
          'Cannot provide both a size and a percent'),
      assert(child != null),
      super(key: key);