DrawerItem constructor
const
DrawerItem({
- IconData? icon,
- String? text,
- Color? splashColor,
- Color? normalForegroundColor,
- Color? checkedForegroundColor,
- Color? checkedBackgroundColor,
- Decoration? backgroundDecoration,
- ShapeBorder? selectCustomBorder,
- bool? checked,
- GestureTapCallback? onTap,
- EdgeInsets? padding,
- FontWeight? fontWeight,
- double? fontSize,
Implementation
const DrawerItem({
this.icon,
this.text,
this.splashColor,
Color? normalForegroundColor,
this.checkedForegroundColor,
Color? checkedBackgroundColor,
this.backgroundDecoration,
ShapeBorder? selectCustomBorder,
bool? checked,
this.onTap,
EdgeInsets? padding,
FontWeight? fontWeight,
double? fontSize,
}) : normalForegroundColor =
normalForegroundColor ?? const Color(0xff414141),
checkedBackgroundColor =
checkedBackgroundColor ?? const Color(0x779e9e9e),
selectCustomBorder = selectCustomBorder ??
const RoundedRectangleBorder(
borderRadius: BorderRadius.only(
topRight: Radius.circular(100),
bottomRight: Radius.circular(100),
)),
checked = checked ?? false,
padding = padding ?? const EdgeInsets.all(16),
fontWeight = fontWeight ?? FontWeight.normal,
fontSize = fontSize ?? 14.0;