maybeScheduleUpdate method

void maybeScheduleUpdate()

Implementation

void maybeScheduleUpdate() {
  if (_shouldBeShown() || _shouldHide()) {
    _cancelPlannedLabelHiddingIfNeed();
    _plannedUpdate = Timer(_durationBeforePlannedHidding, () {
      if (_shouldHide()) {
        _hide();
      }

      if (_shouldBeShown()) {
        _show();
      }
    });
  }
}