GuestNameRules class

Constructors

GuestNameRules({int? minLength, int? maxLength, String? pattern, String? allowedCharacters, bool? distinctFullNames})
Returns a new GuestNameRules instance.

Properties

allowedCharacters ↔ String?
The pattern in words, for a hint next to the field.
getter/setter pair
distinctFullNames ↔ bool?
Whether two guests of the booking may not share the same first and last name together. Sharing only a first name is always accepted.
getter/setter pair
hashCode → int
The hash code for this object.
no setteroverride
maxLength ↔ int?
Most characters in a first or last name.
getter/setter pair
minLength ↔ int?
Fewest characters in a first or last name.
getter/setter pair
pattern ↔ String?
Regular expression every first and last name must match.
getter/setter pair
runtimeType → Type
A representation of the runtime type of the object.
no setterinherited

Methods

noSuchMethod(Invocation invocation) → dynamic
Invoked when a nonexistent method or property is accessed.
inherited
toJson() → Map<String, dynamic>
toString() → String
A string representation of this object.
override

Operators

operator ==(Object other) → bool
The equality operator.
override

Static Methods

fromJson(dynamic value) → GuestNameRules?
Returns a new GuestNameRules instance and imports its values from value if it's a Map, null otherwise.
listFromJson(dynamic json, {bool growable = false}) → List<GuestNameRules>
mapFromJson(dynamic json) → Map<String, GuestNameRules>
mapListFromJson(dynamic json, {bool growable = false}) → Map<String, List<GuestNameRules>>

Constants

requiredKeys → const Set<String>
The list of required keys that must be present in a JSON.