LicensePlateValidator constructor

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

Constructor for the license plate validator.

Implementation

LicensePlateValidator({
  /// {@macro license_plate_template}
  RegExp? regex,
  this.licensePlateWhitelist = const <String>[],
  this.licensePlateBlacklist = const <String>[],
  super.errorText,
  super.checkNullOrEmpty,
}) : regex = regex ?? _licensePlate;