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