hasStyle method

WidgetMatcher<TextField> hasStyle(
  1. TextStyle? value
)

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

Example usage:

spot<TextField>().existsOnce().hasStyle(TextStyle());

Implementation

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