notEmpty static method

TextValidator notEmpty({
  1. bool trim = true,
  2. String message = "不可为空",
})

Implementation

static TextValidator notEmpty({bool trim = true, String message = "不可为空"}) {
  return NotEmptyValidator(trim: trim, message: message).call;
}