CountryElement constructor
CountryElement({
- String? id,
- String? initValue,
- DecorationElement? decorationElement,
- String? label,
- String? errorMsg = "invalid Country",
- String labelModalSheet = "Pays",
- String labelSearchModalSheet = "Recherche",
- CountryTextResult countryTextResult = CountryTextResult.FullName,
- bool showFlag = false,
- EdgeInsets padding = const EdgeInsets.all(2.0),
- bool visibility = true,
- bool readOnly = false,
Implementation
CountryElement({
String? id,
this.initValue,
this.decorationElement,
this.label,
this.errorMsg = "invalid Country",
this.labelModalSheet = "Pays",
this.labelSearchModalSheet = "Recherche",
this.countryTextResult = CountryTextResult.FullName,
this.showFlag = false,
this.padding = const EdgeInsets.all(2.0),
bool visibility = true,
bool readOnly = false,
}) : assert((countryTextResult == CountryTextResult.countryCode &&
(initValue!.isEmpty || initValue.length == 3)) ||
(countryTextResult == CountryTextResult.FullName)),
super(
id: id,
initValue: initValue,
decorationElement: decorationElement,
label: label,
readOnly: readOnly,
padding: padding,
error: errorMsg,
visibility: visibility,
);