$check static method

List<String> $check(
  1. Object? read()
)

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];
  }
}