Validator<T> class abstract

Validator 验证器基类

Implementers

Constructors

Validator(String label)
Validator 验证器基类

Properties

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

Methods

call(T val) String?
验证并返回错误信息
isValid(T val) bool
验证值是否有效
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