Flags.fromString constructor
const
Flags.fromString(})
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
const Flags.fromString(
this.counties, {
Key? key,
this.height = 300,
this.width = 400,
this.replacement = const SizedBox.shrink(),
this.flagSize = FlagSize.size_4x3,
this.borderRadius,
}) : assert(
counties.length == 2,
'counties count must be 2.',
),
this.countiyCodes = const [],
super(key: key);