whereStyle method

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

Example usage:

spot<SelectableText>().whereStyle((it) => it.equals(TextStyle())).existsOnce();

Implementation

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