MenuDivider constructor Null safety
A MenuDivider is displayed as a Divider in the menus and submenus.
All the fields correspond to a regular Divider widget. Assign the fields like you would for a Divider widget.
Implementation
const MenuDivider({
double height = 12.0,
double? thickness,
double? indent,
double? endIndent,
Color? color,
}) : super(
menuEntryType: MenuEntryType.MenuDivider,
height: height,
thickness: thickness,
indent: indent,
endIndent: endIndent,
color: color,
text: null,
icon: null,
shortcut: null,
shortcutText: null,
onTap: null,
submenu: null,
);