setConstraint method

T setConstraint({
  1. int? minLength,
  2. int? maxLength,
  3. bool? required,
})

Implementation

T setConstraint({int? minLength, int? maxLength, bool? required}) {
  _minLength = minLength ?? _minLength;
  _maxLength = maxLength ?? _maxLength;
  _required = required ?? _required;

  return this as T;
}