withUndoController method
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));
}