CurvedDrawer constructor

CurvedDrawer(
  1. {Key key,
  2. @required List<DrawerItem> items,
  3. int index = 0,
  4. Color color = Colors.white,
  5. Color buttonBackgroundColor = Colors.white,
  6. Color labelColor = Colors.black54,
  7. Color backgroundColor = Colors.transparent,
  8. ValueChanged<int> onTap,
  9. Curve animationCurve = Curves.easeOut,
  10. Duration animationDuration = const Duration(milliseconds: 600),
  11. double width = 75,
  12. bool isEndDrawer = false}
)

Implementation

CurvedDrawer(
    {Key key,
    @required this.items,
    //default select first item
    this.index = 0,
    this.color = Colors.white,
    this.buttonBackgroundColor = Colors.white,
    this.labelColor = Colors.black54,
    this.backgroundColor = Colors.transparent,
    this.onTap,
    this.animationCurve = Curves.easeOut,
    this.animationDuration = const Duration(milliseconds: 600),
    this.width = 75,
    this.isEndDrawer = false})
    : assert(items != null),
      assert(items.length >= 1),
      assert(0 <= index && index < items.length),
      assert(0 <= width && width <= 100),
      super(key: key);