StateValidator constructor
StateValidator({})
Constructor for the state name validator.
Implementation
StateValidator({
/// {@macro state_template}
RegExp? regex,
this.stateWhitelist = const <String>[],
this.stateBlacklist = const <String>[],
super.errorText,
super.checkNullOrEmpty,
}) : regex = regex ?? _state;