canShow property

  1. @Input('showTooltipIf')
set canShow (bool value)

Condition whether to show the tooltip.

Defaults to true.

Implementation

@Input('showTooltipIf')
set canShow(bool value) {
  if (value == _canShow) return;
  if (value) {
    _attachHostListeners();
  } else {
    _tooltip?.deactivate(immediate: true);
    _delayedActivate.cancel();
  }
  _canShow = value;
}