openBubble method

void openBubble()

Start the chathead. also check constantly the current state of it.

for that please use the method isOpen.

Implementation

void openBubble() async {
  _platform.invokeMethod('start');
  _timer = Timer.periodic(Duration(seconds: 1), (timer) async {
    _isOpen = await _platform.invokeMethod('isOpen') ?? false;
    if (!_isOpen) {
      timer.cancel();
    }
  });
}