hide method

void hide ()

Hide the tooltip.

Implementation

void hide() {
  final QueryEvent e = new QueryEvent('hide.bs.$_type');
  $element.triggerEvent(e);
  if (e.defaultPrevented)
    return;

  tip.classes.remove('in');

  if (Transition.isUsed && tip.classes.contains('fade')) {
    ElementQuery $tip = $(tip);

    new Timer(const Duration(milliseconds: 500), () {
      $tip.off(Transition.end);
      if (tip.parent != null)
        tip.remove();
    });
    $tip.one(Transition.end, (QueryEvent e) {
      if (tip.parent != null)
        tip.remove();
    });

  } else {
    tip.remove();

  }

  $element.trigger('hidden.bs.$_type'); // TODO: check timing
}