getBallonContainerMargin method
EdgeInsets
getBallonContainerMargin
()
Implementation
EdgeInsets getBallonContainerMargin() {
var top = (showCloseButton == ShowCloseButton.outside) ? closeButtonSize + 5 : 0.0;
switch (popupDirection) {
//
case TooltipDirection.down:
return EdgeInsets.only(
top: arrowTipDistance + arrowLength,
);
case TooltipDirection.up:
return EdgeInsets.only(bottom: arrowTipDistance + arrowLength, top: top);
case TooltipDirection.left:
return EdgeInsets.only(right: arrowTipDistance + arrowLength, top: top);
case TooltipDirection.right:
return EdgeInsets.only(left: arrowTipDistance + arrowLength, top: top);
default:
throw AssertionError(popupDirection);
}
}