validator property
EzValidator<T>
get
validator
Implementation
EzValidator<T> get validator {
final base = EzValidator<T>(defaultValue: defaultVal, optional: optional);
return optional
? base.isType(propertyType)
: base.required().isType(propertyType);
}