VIN class

Constructors

VIN({required String number, bool extended = false})

Properties

extended bool
Try to obtain extended information for the VIN from the NHTSA database.
final
hashCode int
The hash code for this object.
no setterinherited
number String
The VIN that the class was instantiated with.
final
runtimeType Type
A representation of the runtime type of the object.
no setterinherited
vds String
The Vehicle Descriptor Section (VDS) code for the specified number.
final
vis String
The Vehicle Identifier Section (VIS) code for the specified number.
final
wmi String
The World Manufacturer Identifier (WMI) code for the specified number.
final

Methods

assemblyPlant() String
Extract the single-character assembly plant designator from the number.
getChecksum() String?
Returns the checksum for the VIN. Note that in the case of the EU region checksums are not implemented, so this becomes a no-op. More information is provided in ISO 3779:2009.
getMakeAsync() Future<String?>
Get the Make of the vehicle from the NHTSA database if extended mode is enabled.
getManufacturer() String?
Get the full name of the vehicle manufacturer as defined by the wmi.
getModelAsync() Future<String?>
Get the Model of the vehicle from the NHTSA database if extended mode is enabled.
getRegion() String
Obtain the 2-character region code for the manufacturing region.
getVehicleTypeAsync() Future<String?>
Get the Vehicle Type from the NHTSA database if extended mode is enabled.
getYear() int?
Obtain the encoded manufacturing year in YYYY format.
modelYear() String
Extract the single-character model year from the number.
noSuchMethod(Invocation invocation) → dynamic
Invoked when a nonexistent method or property is accessed.
inherited
serialNumber() String
Extract the serial number from the number.
toString() String
A string representation of this object.
override
valid([String? number]) bool
Carry out VIN validation. A valid number must be 17 characters long and contain only valid alphanumeric characters.

Operators

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

Static Methods

normalize(String number) String
Provide a normalized VIN string, regardless of the input format.