hasExpands method

WidgetMatcher<TextField> hasExpands(
  1. bool? value
)

Expects that expands of TextField equals (==) value.

Example usage:

spot<TextField>().existsOnce().hasExpands(true);

Implementation

WidgetMatcher<TextField> hasExpands(bool? value) {
  return hasDiagnosticProp<bool>(
      'expands', (it) => value == null ? it.isNull() : it.equals(value));
}