whereFontStyle method

  1. @useResult
WidgetSelector<AnyText> whereFontStyle(
  1. MatchProp<FontStyle> match
)

Creates a WidgetSelector that finds all AnyText where fontStyle matches the condition.

Example usage:

spot<AnyText>().whereFontStyle((it) => it.equals(FontStyle.values.first)).existsOnce();

Implementation

@useResult
WidgetSelector<AnyText> whereFontStyle(MatchProp<FontStyle> match) {
  return withDiagnosticProp<FontStyle>('font_style', match);
}