withWeight method
Creates a WidgetSelector that finds all EditableText where weight equals (==) value
.
Example usage:
spot<EditableText>().withWeight(FontWeight.bold).existsOnce();
Implementation
@useResult
WidgetSelector<EditableText> withWeight(FontWeight? value) {
return withDiagnosticProp<FontWeight>(
'weight', (it) => value == null ? it.isNull() : it.equals(value));
}