withFontBackgroundColor method

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

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

Example usage:

spot<AnyText>().withFontBackgroundColor(Colors.red).existsOnce();

Implementation

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