whereFontWeight method

  1. @useResult
WidgetSelector<AnyText> whereFontWeight(
  1. MatchProp<FontWeight> match
)

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

Example usage:

spot<AnyText>().whereFontWeight((it) => it.equals(FontWeight.bold)).existsOnce();

Implementation

@useResult
WidgetSelector<AnyText> whereFontWeight(MatchProp<FontWeight> match) {
  return withDiagnosticProp<FontWeight>('font_weight', match);
}