MaxLengthValidator constructor

const MaxLengthValidator({
  1. required int length,
})

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

Implementation

const MaxLengthValidator({
  required this.length,
}) : assert(length > 0);