MenuDivider constructor Null safety

const MenuDivider(
  1. {double height = 12.0,
  2. double? thickness,
  3. double? indent,
  4. double? endIndent,
  5. Color? color}
)

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,
      );