Flag constructor
- @Deprecated('\nUse Flag.fromString / Flag.fromCode instead. \n' 'This feature was deprecated after v6.0.0')
Creates a flag widget.
If the fit
argument is null, the text will use the BoxFit.contain.
The country
parameter must not be null.
Implementation
@Deprecated(
'\nUse Flag.fromString / Flag.fromCode instead. \n'
'This feature was deprecated after v6.0.0',
)
const Flag(
this.country, {
Key? key,
this.height,
this.width,
this.fit = BoxFit.contain,
this.replacement = const SizedBox.shrink(),
}) : assert(
country != '',
'A non-null Country Code String must be provided to a Flag widget.',
),
this.countryCode = FlagsCode.NULL,
super(key: key);