VinContent class final
A vehicle identification number (ISO 3779): 17 characters, from the Code 39 or Data Matrix on a windshield, door pillar or title.
Only what the number itself says: where the vehicle was made and the manufacturer code (WMI); the model year and check digit follow North American rules. toPayload returns raw.
- Inheritance
-
- Object
- BarcodeContent
- VinContent
Constructors
- VinContent({required String vin, required String raw})
-
Creates VIN content.
const
Properties
- hashCode → int
-
The hash code for this object.
no setteroverride
- hasValidCheckDigit → bool
-
Whether character 9 is the check digit North American VINs carry.
Other VINs may use it for something else.
no setter
- modelYear → int?
-
The model year of a North American passenger vehicle, from character
10 and the 30-year cycle that character 7 picks;
nullif character 10 is not a year code.no setter - raw → String
-
The text as read: some labels put an
I(imported) before the VIN.final - region → VinRegion
-
Where the vehicle was made.
no setter
- runtimeType → Type
-
A representation of the runtime type of the object.
no setterinherited
- uri → Uri?
-
A link that opens this content in the app made for it, for
launchUrlof package:url_launcher;nullwhen there is none.no setterinherited - vin → String
-
The 17 characters, upper case.
final
- wmi → String
-
The World Manufacturer Identifier, the first three characters.
no setter
Methods
-
noSuchMethod(
Invocation invocation) → dynamic -
Invoked when a nonexistent method or property is accessed.
inherited
-
toPayload(
) → String -
raw, the text as read.
override
-
toString(
) → String -
A string representation of this object.
override
-
validate(
) → List< ContentIssue> -
The problems that keep toPayload from building this value, such as
an empty network name or a latitude out of range. Empty when the value
can be built. For forms: show each ContentIssue.message next to its
ContentIssue.field.
override
Operators
-
operator ==(
Object other) → bool -
The equality operator.
override