isEnabled method
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));
}