hasLeading method

WidgetMatcher<ListTile> hasLeading(
  1. Widget? value
)

Expects that leading of ListTile equals (==) value.

Example usage:

spot<ListTile>().existsOnce().hasLeading(Container());

Implementation

WidgetMatcher<ListTile> hasLeading(Widget? value) {
  return hasDiagnosticProp<Widget>(
      'leading', (it) => value == null ? it.isNull() : it.equals(value));
}