whereController method

Creates a WidgetSelector that finds all EditableText where controller matches the condition.

Example usage:

spot<EditableText>().whereController((it) => it.equals(TextEditingController())).existsOnce();

Implementation

@useResult
WidgetSelector<EditableText> whereController(
    MatchProp<TextEditingController> match) {
  return withDiagnosticProp<TextEditingController>('controller', match);
}