isEnabled method

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

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

Example usage:

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

Implementation

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