hasLeading method
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));
}