hasStyle method

WidgetMatcher<ListTile> hasStyle(
  1. ListTileStyle? value
)

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

Example usage:

spot<ListTile>().existsOnce().hasStyle(ListTileStyle.values.first);

Implementation

WidgetMatcher<ListTile> hasStyle(ListTileStyle? value) {
  return hasDiagnosticProp<ListTileStyle>(
      'style', (it) => value == null ? it.isNull() : it.equals(value));
}