FunkyFlag constructor
const
FunkyFlag(
- FunkyFlags flag, {
- FunkyFlagShapes shape = FunkyFlagShapes.square,
- BoxFit fit = BoxFit.contain,
- double? width,
- double? height,
- double? borderRadius,
- Key? key,
Constructor for creating a FunkyFlag widget.
flag
is the type of flag to display.
shape
is the shape of the flag.
fit
is the box fit for the flag.
width
is the width of the flag widget.
height
is the height of the flag widget.
borderRadius
is the border radius of the flag widget.
Implementation
const FunkyFlag(
this.flag, {
this.shape = FunkyFlagShapes.square,
this.fit = BoxFit.contain,
this.width,
this.height,
this.borderRadius,
super.key,
});