hide method
void
hide()
Hide the tooltip.
Implementation
void hide() {
final e = QueryEvent('hide.bs.$_type');
$element.triggerEvent(e);
if (e.defaultPrevented)
return;
tip.classes.remove('in');
if (Transition.isUsed && tip.classes.contains('fade')) {
final $tip = $(tip);
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 if (tip.parent != null) {
tip.remove();
}
$element.trigger('hidden.bs.$_type'); // TODO: check timing
}