whereStyle method

Creates a WidgetSelector that finds all EditableText where style matches the condition.

Example usage:

spot<EditableText>().whereStyle((it) => it.equals(FontStyle.values.first)).existsOnce();

Implementation

@useResult
WidgetSelector<EditableText> whereStyle(MatchProp<FontStyle> match) {
  return withDiagnosticProp<FontStyle>('style', match);
}