VehiclePlate class

Result of parseVehiclePlate.

Constructors

VehiclePlate({required String series, required String number, required String? year, required String formatted})
Creates a vehicle plate value.
const

Properties

formatted → String
Series and number joined with a dash, e.g. LEA-1234 (without the year).
final
hashCode → int
The hash code for this object.
no setteroverride
number → String
Digits of the registration number, e.g. 1234.
final
runtimeType → Type
A representation of the runtime type of the object.
no setterinherited
series → String
Letters before the number, e.g. LEA.
final
year → String?
Two-digit year printed on some older Punjab plates, e.g. 19; otherwise null.
final

Methods

noSuchMethod(Invocation invocation) → dynamic
Invoked when a nonexistent method or property is accessed.
inherited
toJson() → Map<String, Object?>
JSON form, with the same keys as the npm package.
toString() → String
A string representation of this object.
override

Operators

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