hideBall static method

void hideBall()

隐藏悬浮球(球不在屏则幂等)。面板打开期间用它隐藏球。

Implementation

static void hideBall() {
  final entry = _ballEntry;
  _ballEntry = null;
  if (entry == null) {
    return;
  }
  entry.remove();
  entry.dispose();
}