whereEnabled method

Creates a WidgetSelector that finds all ElevatedButton where enabled matches the condition.

Example usage:

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

Implementation

@useResult
WidgetSelector<ElevatedButton> whereEnabled(MatchProp<bool> match) {
  return withDiagnosticProp<bool>('enabled', match);
}