CountryFlags constructor
CountryFlags(
- String? countryFlagName, {
- Key? key,
- double? width = 150.0,
- double? height = 150.0,
- BoxFit fit = BoxFit.cover,
- AlignmentGeometry alignment = Alignment.center,
- bool matchTextDirection = false,
- bool allowDrawingOutsideViewBox = false,
- Widget placeholderBuilder()?,
- ColorFilter? colorFilter,
- String? semanticsLabel,
- bool excludeFromSemantics = false,
- Clip clipBehavior = Clip.hardEdge,
Implementation
CountryFlags(
this.countryFlagName, {
Key? key,
double? width = 150.0,
double? height = 150.0,
BoxFit fit = BoxFit.cover,
AlignmentGeometry alignment = Alignment.center,
bool matchTextDirection = false,
bool allowDrawingOutsideViewBox = false,
Widget Function(BuildContext)? placeholderBuilder,
ColorFilter? colorFilter,
String? semanticsLabel,
bool excludeFromSemantics = false,
Clip clipBehavior = Clip.hardEdge,
}) : super.asset(
key: key,
countryFlagName ?? '',
height: height,
width: width,
fit: fit,
alignment: alignment,
matchTextDirection: matchTextDirection,
allowDrawingOutsideViewBox: allowDrawingOutsideViewBox,
placeholderBuilder: placeholderBuilder,
semanticsLabel: semanticsLabel,
excludeFromSemantics: excludeFromSemantics,
clipBehavior: clipBehavior,
package: 'country_flags',
);