CornerBanner constructor

const CornerBanner({
  1. Key? key,
  2. bool showBanner = true,
  3. BannerPosition bannerPosition = BannerPosition.topRight,
  4. String? bannerText,
  5. TextStyle? bannerTextStyle,
  6. double bannerSize = 40.0,
  7. Widget? bannerIcon,
  8. bool bannerIconRotation = false,
  9. Color? bannerColor,
  10. Widget? child,
  11. EdgeInsets? contentPadding,
})

Suitable for use in column or listview or anykind of vertical list. then it will automatically take a height by given child.

Otherwise height & width must be given or it will take all the available space it get.

Implementation

const CornerBanner({
  Key? key,
  this.showBanner = true,
  this.bannerPosition = BannerPosition.topRight,
  this.bannerText,
  this.bannerTextStyle,
  this.bannerSize = 40.0,
  this.bannerIcon,
  this.bannerIconRotation = false,
  this.bannerColor,
  this.child,
  this.contentPadding,
})  : assert(bannerText != null || bannerIcon != null),
      super(key: key);