PassportValidator class

Constructors

PassportValidator()
validate the passport number.
factory

Properties

hashCode int
The hash code for this object.
no setterinherited
runtimeType Type
A representation of the runtime type of the object.
no setterinherited

Methods

format(String? passport, {bool withSpace = false}) String?
passport format can be A21 90457 or A2190457
isValid(String? passport) bool
function to check if the provided passport is valid or not.
noSuchMethod(Invocation invocation) → dynamic
Invoked when a nonexistent method or property is accessed.
inherited
toString() String
A string representation of this object.
inherited

Operators

operator ==(Object other) bool
The equality operator.
inherited