withFocusColor method

  1. @useResult
WidgetSelector<IconButton> withFocusColor(
  1. Color? value
)

Creates a WidgetSelector that finds all IconButton where focusColor equals (==) value.

Example usage:

spot<IconButton>().withFocusColor(Colors.red).existsOnce();

Implementation

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