validate method

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

Implementation

bool validate(ModelDB db, Object? value) {
  if (required && value == null) return false;
  return true;
}