whereMaxLengthEnforcement method

  1. @useResult
WidgetSelector<TextField> whereMaxLengthEnforcement(
  1. MatchProp<MaxLengthEnforcement> match
)

Creates a WidgetSelector that finds all TextField where maxLengthEnforcement matches the condition.

Example usage:

spot<TextField>().whereMaxLengthEnforcement((it) => it.equals(MaxLengthEnforcement.values.first)).existsOnce();

Implementation

@useResult
WidgetSelector<TextField> whereMaxLengthEnforcement(
    MatchProp<MaxLengthEnforcement> match) {
  return withDiagnosticProp<MaxLengthEnforcement>(
      'maxLengthEnforcement', match);
}