whereUndoController method

Creates a WidgetSelector that finds all EditableText where undoController matches the condition.

Example usage:

spot<EditableText>().whereUndoController((it) => it.equals(UndoHistoryController())).existsOnce();

Implementation

@useResult
WidgetSelector<EditableText> whereUndoController(
    MatchProp<UndoHistoryController> match) {
  return withDiagnosticProp<UndoHistoryController>('undoController', match);
}