SideMenu constructor
SideMenu({
- Key? key,
- required Widget child,
- Color? background,
- BorderRadius? radius,
- Icon? closeIcon = const Icon(Icons.close, color: Colors.black),
- Duration animatedDuration = const Duration(milliseconds: 350),
- Curve curve = Curves.fastLinearToSlowEaseIn,
- void onClosedIcon()?,
- SideMenuType type = SideMenuType.animNRotate,
- double maxMenuWidth = 275.0,
- bool inverse = false,
- void onChange(
- bool isOpened
Implementation
SideMenu({
Key? key,
required this.child,
this.background,
this.radius,
this.closeIcon = const Icon(
Icons.close,
color: Colors.black,
),
this.animatedDuration =const Duration(milliseconds: 350),
this.curve =Curves.fastLinearToSlowEaseIn,
required this.menu,
this.onClosedIcon,
this.type = SideMenuType.animNRotate,
this.maxMenuWidth = 275.0,
bool inverse = false,
this.onChange,
}) : assert(maxMenuWidth > 0),
inverseValue = inverse ? -1 : 1,
super(key: key);