validate method
Returns true if the given map
from BaseModel.toMap passes this
Validator's check.
Implementation
@override
bool validate(Map<String, dynamic> map) {
final value = map.read<int>(name);
if (value == null) {
return true;
}
return DateTime.fromMicrosecondsSinceEpoch(value).isBefore(DateTime.now());
}