MercosulPlate constructor
- String plate, {
- Key? key,
- double? width,
- double? height,
- MercosulPlateCategory category = MercosulPlateCategory.particular,
- String locality = 'BRASIL',
- String countryAcronymLetters = 'BR',
- ImageProvider<
Object> ? countryFlag, - ImageProvider<
Object> ? mercosulLogo, - Color? backgroundColor,
- Color? borderColor,
- Color? textColor,
- Color? topBarColor,
- 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,
});