whereWeight method

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

Example usage:

spot<EditableText>().whereWeight((it) => it.equals(FontWeight.bold)).existsOnce();

Implementation

@useResult
WidgetSelector<EditableText> whereWeight(MatchProp<FontWeight> match) {
  return withDiagnosticProp<FontWeight>('weight', match);
}