minLength property
The minimum and maximum length of the barcode. If omitted, the barcode can be of any length Note that this is not supported on all barcode types so you should check the hardware vendors documentation for the specific barcode type (or test).
Implementation
final int? minLength, maxLength;