InnerDrawer constructor

const InnerDrawer({
  1. GlobalKey<State<StatefulWidget>>? key,
  2. Widget? leftChild,
  3. Widget? rightChild,
  4. required Widget scaffold,
  5. IDOffset offset = const IDOffset.horizontal(0.4),
  6. IDOffset scale = const IDOffset.horizontal(1),
  7. bool proportionalChildArea = true,
  8. double borderRadius = 0,
  9. bool onTapClose = false,
  10. bool tapScaffoldEnabled = false,
  11. bool swipe = true,
  12. bool swipeChild = false,
  13. Duration? duration,
  14. double velocity = 1,
  15. List<BoxShadow>? boxShadow,
  16. Color? colorTransitionChild,
  17. Color? colorTransitionScaffold,
  18. InnerDrawerAnimation leftAnimationType = InnerDrawerAnimation.static,
  19. InnerDrawerAnimation rightAnimationType = InnerDrawerAnimation.static,
  20. Decoration? backgroundDecoration,
  21. InnerDrawerCallback? innerDrawerCallback,
  22. InnerDragUpdateCallback? onDragUpdate,
})

Implementation

const InnerDrawer(
    {GlobalKey? key,
    this.leftChild,
    this.rightChild,
    required this.scaffold,
    this.offset = const IDOffset.horizontal(0.4),
    this.scale = const IDOffset.horizontal(1),
    this.proportionalChildArea = true,
    this.borderRadius = 0,
    this.onTapClose = false,
    this.tapScaffoldEnabled = false,
    this.swipe = true,
    this.swipeChild = false,
    this.duration,
    this.velocity = 1,
    this.boxShadow,
    this.colorTransitionChild,
    this.colorTransitionScaffold,
    this.leftAnimationType = InnerDrawerAnimation.static,
    this.rightAnimationType = InnerDrawerAnimation.static,
    this.backgroundDecoration,
    this.innerDrawerCallback,
    this.onDragUpdate})
    : assert(leftChild != null || rightChild != null),
      assert(scaffold != null),
      super(key: key);