withUndoController method

  1. @useResult
WidgetSelector<TextField> withUndoController(
  1. UndoHistoryController? value
)

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

Example usage:

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

Implementation

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