withUndoController method

Creates a WidgetSelector that finds all EditableText where undoController equals (==) value.

Example usage:

spot<EditableText>().withUndoController(UndoHistoryController()).existsOnce();

Implementation

@useResult
WidgetSelector<EditableText> withUndoController(
    UndoHistoryController? value) {
  return withDiagnosticProp<UndoHistoryController>('undoController',
      (it) => value == null ? it.isNull() : it.equals(value));
}