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