isEnabledWhere method

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

Expects that enabled of OutlinedButton matches the condition in match.

Example usage:

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

Implementation

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