isEnabledWhere method
Expects that enabled of TextButton matches the condition in match
.
Example usage:
spot<TextButton>().existsOnce().isEnabledWhere((it) => it.isTrue());
Implementation
WidgetMatcher<TextButton> isEnabledWhere(MatchProp<bool> match) {
return hasDiagnosticProp<bool>('enabled', match);
}