withFontForeground method

  1. @useResult
WidgetSelector<AnyText> withFontForeground(
  1. Paint? value
)

Creates a WidgetSelector that finds all AnyText where fontForeground equals (==) value.

Example usage:

spot<AnyText>().withFontForeground(Paint()).existsOnce();

Implementation

@useResult
WidgetSelector<AnyText> withFontForeground(Paint? value) {
  return withDiagnosticProp<Paint>('font_foreground',
      (it) => value == null ? it.isNull() : it.equals(value));
}