public DrawerController( GlobalKey key = null, Widget child = null, DrawerAlignment?alignment = null, DrawerCallback drawerCallback = null) : base(key: key) { D.assert(child != null); D.assert(alignment != null); this.child = child; this.alignment = alignment ?? DrawerAlignment.start; this.drawerCallback = drawerCallback; }
public DrawerController( GlobalKey key = null, Widget child = null, DrawerAlignment?alignment = null, DrawerCallback drawerCallback = null, DragStartBehavior dragStartBehavior = DragStartBehavior.start, Color scrimColor = null, bool?enableOpenDragGesture = true, float?edgeDragWidth = null ) : base(key: key) { D.assert(child != null); D.assert(alignment != null); this.child = child; this.alignment = alignment ?? DrawerAlignment.start; this.drawerCallback = drawerCallback; this.dragStartBehavior = dragStartBehavior; this.scrimColor = scrimColor; this.enableOpenDragGesture = enableOpenDragGesture; this.edgeDragWidth = edgeDragWidth; }