withFontColor method
Creates a WidgetSelector that finds all AnyText where fontColor equals (==) value
.
Example usage:
spot<AnyText>().withFontColor(Colors.red).existsOnce();
Implementation
@useResult
WidgetSelector<AnyText> withFontColor(Color? value) {
return withDiagnosticProp<Color>(
'font_color', (it) => value == null ? it.isNull() : it.equals(value));
}