ValidatorMaxLength class

ValidatorMaxLength 最大长度验证器

Inheritance

Constructors

ValidatorMaxLength({required int max, required String label})
ValidatorMaxLength 最大长度验证器

Properties

hashCode int
The hash code for this object.
no setterinherited
label String
验证失败时的提示文本
finalinherited
max int
最大长度
final
runtimeType Type
A representation of the runtime type of the object.
no setterinherited

Methods

call(String? val) String?
验证并返回错误信息
inherited
isValid(String? val) bool
验证值是否有效
override
noSuchMethod(Invocation invocation) → dynamic
Invoked when a nonexistent method or property is accessed.
inherited
toString() String
A string representation of this object.
inherited

Operators

operator ==(Object other) bool
The equality operator.
inherited