MercosulPlate constructor

const MercosulPlate(
  1. String plate, {
  2. Key? key,
  3. double? width,
  4. double? height,
  5. MercosulPlateCategory category = MercosulPlateCategory.particular,
  6. String locality = 'BRASIL',
  7. String countryAcronymLetters = 'BR',
  8. ImageProvider<Object>? countryFlag,
  9. Color? backgroundColor,
  10. Color? borderColor,
  11. Color? textColor,
  12. Color? topBarColor,
  13. bool compact = false,
})

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, {
  super.key,
  this.width,
  this.height,
  this.category = MercosulPlateCategory.particular,
  this.locality = 'BRASIL',
  this.countryAcronymLetters = 'BR',
  this.countryFlag,
  this.mercosulLogo,
  this.backgroundColor,
  this.borderColor,
  this.textColor,
  this.topBarColor,
  this.compact = false,
});