toggle method

Future<void> toggle()

Convenience method for showing/hiding the tooltip.

This method should typically not be called while the widget tree is being rebuilt.

Implementation

Future<void> toggle() => _animation.status.isForwardOrCompleted ? hide() : show();