CornerBanner constructor
const
CornerBanner({})
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);