closeBubble method

void closeBubble()

Stop Bubble service and close the bubble

Implementation

void closeBubble() {
  if (_isOpen) {
    removeCallback();
    _platform.invokeMethod('closeBubble');
    _timer?.cancel();
    _isOpen = false;
  } else
    throw Exception('Bubble not running');
}