CountryFlags constructor

CountryFlags(
  1. String? countryFlagName, {
  2. Key? key,
  3. double? width = 150.0,
  4. double? height = 150.0,
  5. BoxFit fit = BoxFit.cover,
  6. AlignmentGeometry alignment = Alignment.center,
  7. bool matchTextDirection = false,
  8. bool allowDrawingOutsideViewBox = false,
  9. Widget placeholderBuilder(
    1. BuildContext
    )?,
  10. ColorFilter? colorFilter,
  11. String? semanticsLabel,
  12. bool excludeFromSemantics = false,
  13. 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',
      );