LicensePlate class abstract

Model for license plate

Implementers

Constructors

LicensePlate({required dynamic series, required int number, required int region})

Properties

hashCode int
The hash code for this object.
no setterinherited
number int
The plate number
final
numberAsString String
Return numer + series in string format
no setter
region int
The plate region
final
regionAsString String
Return region as string
no setter
runtimeType Type
A representation of the runtime type of the object.
no setterinherited
series String
The plate series
final

Methods

noSuchMethod(Invocation invocation) → dynamic
Invoked when a nonexistent method or property is accessed.
inherited
toString() String
A string representation of this object.
override

Operators

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

Static Methods

isValidNumber(int number) bool
Return true if number is valid
isValidRegion(int region) bool
Return true if region is valid
isValidSeries(String series) bool
Return true if series is valid
numberToString(int number, int minSize) String
Present number as string with insignificant zeros
toEng(String value) String
Translate series in number from Russian to English latters
toRus(String value) String
Translate series in number from English to Russian latters