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