withStyle method

Creates a WidgetSelector that finds all TextField where style equals (==) value.

Example usage:

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

Implementation

@useResult
WidgetSelector<TextField> withStyle(TextStyle? value) {
  return withDiagnosticProp<TextStyle>(
      'style', (it) => value == null ? it.isNull() : it.equals(value));
}