DefaultBarConfig constructor
const
DefaultBarConfig({
- double width = 10,
- Color color = Colors.green,
- Color bgColor = Colors.red,
- Color popUpColor = kDefaultPopUpColor,
- PopUpFn popUp = kDefaultPopUpFn,
- BorderRadiusGeometry border = kCircularBorder,
- BorderRadiusGeometry bgBorder = kCircularBorder,
- BorderRadius popUpBorderRadius = BorderRadius.zero,
- BubblePopUpConfig? popUpConfig,
Note: Recommended to ONLY provide popUpConfig
if want to change
pop-up and base anchor alignments, else, DON'T set it.
In case both popUpBorderRadius
and popUpConfig.childBorderRadius
is
provided, then the later will be used.
Implementation
const DefaultBarConfig({
this.width = 10,
this.color = Colors.green,
this.bgColor = Colors.red,
this.popUpColor = kDefaultPopUpColor,
this.popUp = kDefaultPopUpFn,
this.border = kCircularBorder,
this.bgBorder = kCircularBorder,
this.popUpBorderRadius = BorderRadius.zero,
this.popUpConfig,
});