whereReadOnly method

  1. @useResult
WidgetSelector<EditableText> whereReadOnly(
  1. MatchProp<bool> match
)

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

Example usage:

spot<EditableText>().whereReadOnly((it) => it.isTrue()).existsOnce();

Implementation

@useResult
WidgetSelector<EditableText> whereReadOnly(MatchProp<bool> match) {
  return withDiagnosticProp<bool>('readOnly', match);
}