hasDecoration method

WidgetMatcher<TextField> hasDecoration(
  1. InputDecoration? value
)

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

Example usage:

spot<TextField>().existsOnce().hasDecoration(InputDecoration());

Implementation

WidgetMatcher<TextField> hasDecoration(InputDecoration? value) {
  return hasDiagnosticProp<InputDecoration>(
      'decoration', (it) => value == null ? it.isNull() : it.equals(value));
}