$check static method
Runs read for check: a failure becomes its message, a nested model
or list of models is checked in turn.
Implementation
static List<String> $check(Object? Function() read) {
try {
return _checkValue(read());
} on FormatException catch (e) {
return [e.message];
}
}