isEnabledWhere method

WidgetMatcher<ElevatedButton> isEnabledWhere(
  1. MatchProp<bool> match
)

Expects that enabled of ElevatedButton matches the condition in match.

Example usage:

spot<ElevatedButton>().existsOnce().isEnabledWhere((it) => it.isTrue());

Implementation

WidgetMatcher<ElevatedButton> isEnabledWhere(MatchProp<bool> match) {
  return hasDiagnosticProp<bool>('enabled', match);
}