hasShape method

WidgetMatcher<ListTile> hasShape(
  1. ShapeBorder? value
)

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

Example usage:

spot<ListTile>().existsOnce().hasShape(RoundedRectangleBorder());

Implementation

WidgetMatcher<ListTile> hasShape(ShapeBorder? value) {
  return hasDiagnosticProp<ShapeBorder>(
      'shape', (it) => value == null ? it.isNull() : it.equals(value));
}