validate method

  1. @override
bool validate(
  1. ModelDB db,
  2. Object? value
)
override

Implementation

@override
bool validate(ModelDB db, Object? value) {
  if (!super.validate(db, value) || value is! List) return false;

  for (var entry in value) {
    if (!subProperty.validate(db, entry)) return false;
  }
  return true;
}