run method

bool run(
  1. T v
)

Implementation

bool run(T v) {
  if (validator(v)) return true;
  if (message != null) throw ValidatorError(value: v, message: message);
  return false;
}