withFontColor method

  1. @useResult
WidgetSelector<AnyText> withFontColor(
  1. Color? value
)

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));
}