DefaultBarConfig constructor

const DefaultBarConfig({
  1. double width = 10,
  2. Color color = Colors.green,
  3. Color bgColor = Colors.red,
  4. Color popUpColor = kDefaultPopUpColor,
  5. PopUpFn popUp = kDefaultPopUpFn,
  6. BorderRadiusGeometry border = kCircularBorder,
  7. BorderRadiusGeometry bgBorder = kCircularBorder,
  8. BorderRadius popUpBorderRadius = BorderRadius.zero,
  9. 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,
});