InputValidation.maxLength constructor
最大长度校验 / Maximum length validation
Implementation
factory InputValidation.maxLength(int length, {String? errorMsg, bool mustFill = false}) {
return InputValidation(
mustFill: mustFill,
maxLength: length,
errorMsg: errorMsg ?? "最多$length个字符",
);
}