hasFocusColor method

WidgetMatcher<FloatingActionButton> hasFocusColor(
  1. Color? value
)

Expects that focusColor of FloatingActionButton equals (==) value.

Example usage:

spot<FloatingActionButton>().existsOnce().hasFocusColor(Colors.red);

Implementation

WidgetMatcher<FloatingActionButton> hasFocusColor(Color? value) {
  return hasDiagnosticProp<Color>(
      'focusColor', (it) => value == null ? it.isNull() : it.equals(value));
}