MercosulPlate constructor

const MercosulPlate(
  1. String plate,
  2. {double? width,
  3. double? height,
  4. BrazilPlateCategory category = BrazilPlateCategory.PARTICULAR,
  5. String countryText = 'BRASIL',
  6. String countryAcronymLetters = 'BR',
  7. String countryFlagAsset = 'assets/images/brazil.png',
  8. String mercosulLogoAsset = 'assets/images/merco.png'}
)

Class constructor. To obtain the original aspect ratio of a real license plate, only provide a value for width OR height, so it will keep the original proportion automatically. If a value is provided for these two properties, then the original aspect ratio will not be take in account. If neither are provided, the value of _defaultWidth will be used.

Implementation

const MercosulPlate(this.plate,
    {this.width,
    this.height,
    this.category = BrazilPlateCategory.PARTICULAR,
    this.countryText = 'BRASIL',
    this.countryAcronymLetters = 'BR',
    this.countryFlagAsset = 'assets/images/brazil.png',
    this.mercosulLogoAsset = 'assets/images/merco.png'});