FirstNameValidator constructor

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

Constructor for the first name validator.

Implementation

FirstNameValidator({
  /// {@macro first_name_template}
  RegExp? regex,
  this.firstNameWhitelist = const <String>[],
  this.firstNameBlacklist = const <String>[],
  super.errorText,
  super.checkNullOrEmpty,
}) : regex = regex ?? _firstName;