hasUndoController method

WidgetMatcher<TextField> hasUndoController(
  1. UndoHistoryController? value
)

Expects that undoController of TextField equals (==) value.

Example usage:

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

Implementation

WidgetMatcher<TextField> hasUndoController(UndoHistoryController? value) {
  return hasDiagnosticProp<UndoHistoryController>('undoController',
      (it) => value == null ? it.isNull() : it.equals(value));
}