isEnabled method

WidgetMatcher<OutlinedButton> isEnabled(
  1. bool? value
)

Expects that enabled of OutlinedButton equals (==) value.

Example usage:

spot<OutlinedButton>().existsOnce().isEnabled(true);

Implementation

WidgetMatcher<OutlinedButton> isEnabled(bool? value) {
  return hasDiagnosticProp<bool>(
      'enabled', (it) => value == null ? it.isNull() : it.equals(value));
}