hasLeading method

  1. @override
bool hasLeading(
  1. BuildContext context
)
override

Whether this menu item has a leading widget.

If hasLeading returns true, siblings of this menu item that are missing a leading widget will have leading space added to align the leading edges of all menu items.

Implementation

@override
bool hasLeading(BuildContext context) => leading != null;