genBaseConfig static method

BubblePopUpConfig genBaseConfig(
  1. Direction direction
)

Implementation

static BubblePopUpConfig genBaseConfig(Direction direction) {
  return BubblePopUpConfig(
    arrowDirection:
        (direction.y == -1) ? ArrowDirection.down : ArrowDirection.up,
    popUpAnchor: (direction == Direction.up)
        ? Alignment.bottomCenter
        : Alignment.topCenter,
    baseAnchor: _genBaseAnchor(direction),
  );
}