hasControllerWhere method

WidgetMatcher<TextField> hasControllerWhere(
  1. MatchProp<TextEditingController> match
)

Expects that controller of TextField matches the condition in match.

Example usage:

spot<TextField>().existsOnce().hasControllerWhere((it) => it.equals(TextEditingController()));

Implementation

WidgetMatcher<TextField> hasControllerWhere(
    MatchProp<TextEditingController> match) {
  return hasDiagnosticProp<TextEditingController>('controller', match);
}