DrivingLicenseValidator class

Constructors

DrivingLicenseValidator()
validate the Driving license 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? dlNumber, {bool withHyphen = true}) String?
Driving license format is HR-0619850034761 or HR06 19850034761.
isValid(String? dlNumber) bool
function to check if the provided dlNumber 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