FunkyFlag constructor

const FunkyFlag(
  1. FunkyFlags flag, {
  2. FunkyFlagShapes shape = FunkyFlagShapes.square,
  3. BoxFit fit = BoxFit.contain,
  4. double? width,
  5. double? height,
  6. double? borderRadius,
  7. 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,
});