LicensePlate constructor

LicensePlate({
  1. required dynamic series,
  2. required int number,
  3. required int region,
})

Implementation

LicensePlate({
  required series,
  required this.number,
  required this.region,
})  : series = toRus(series),
      assert(isValidSeries(toRus(series))),
      assert(isValidNumber(number)),
      assert(isValidRegion(region));