showOrClose method

void showOrClose()

Implementation

void showOrClose() {
  if (value == BallState.close) {
    show();
  } else {
    close();
  }
}