MinLengthValidator constructor

MinLengthValidator({
  1. required int length,
})

Constructs the validator with the minimum length that the value must be.

Implementation

MinLengthValidator({
  required this.length,
}) : assert(length >= 0);