hasUndoControllerWhere method

WidgetMatcher<TextField> hasUndoControllerWhere(
  1. MatchProp<UndoHistoryController> match
)

Expects that undoController of TextField matches the condition in match.

Example usage:

spot<TextField>().existsOnce().hasUndoControllerWhere((it) => it.equals(UndoHistoryController()));

Implementation

WidgetMatcher<TextField> hasUndoControllerWhere(
    MatchProp<UndoHistoryController> match) {
  return hasDiagnosticProp<UndoHistoryController>('undoController', match);
}