PoliceLicensePlate class

Model a license plate for police cars

Inheritance

Constructors

PoliceLicensePlate({required String series, required int number, required int region})

Properties

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

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

from(String value) → dynamic
Make license plate from string
isValidNumber(int number) bool
Return true if number is valid
override
isValidRegion(int region) bool
Return true if region is valid
override
isValidSeries(String series) bool
Return true if series is valid
override