setConstraint method
Implementation
T setConstraint({int? minLength, int? maxLength, bool? required}) {
_minLength = minLength ?? _minLength;
_maxLength = maxLength ?? _maxLength;
_required = required ?? _required;
return this as T;
}
T setConstraint({int? minLength, int? maxLength, bool? required}) {
_minLength = minLength ?? _minLength;
_maxLength = maxLength ?? _maxLength;
_required = required ?? _required;
return this as T;
}