VinValidator constructor

VinValidator({
  1. RegExp? regex,
  2. List<String> vinWhitelist = const <String>[],
  3. List<String> vinBlacklist = const <String>[],
  4. String? errorText,
  5. bool checkNullOrEmpty = true,
})

Constructor for the VIN validator.

Implementation

VinValidator({
  /// {@macro vin_template}
  RegExp? regex,
  this.vinWhitelist = const <String>[],
  this.vinBlacklist = const <String>[],
  super.errorText,
  super.checkNullOrEmpty,
}) : regex = regex ?? _vin;