dropObjection method

void dropObjection()

Drop the objection, pending a dropDelay if it is provided.

Implementation

void dropObjection() {
  if (dropDelay != null) {
    // ignore: discarded_futures
    _pendingDrop?.cancel();
    logger.finest(
        'Planning to drop objection after delay if nothing stops it.');
    // ignore: discarded_futures
    _pendingDrop = CancelableOperation<void>.fromFuture(dropDelay!(),
        onCancel: () => logger.finest('Cancelling objection drop.'));
    _pendingDrop!.then((_) => _doDrop());
  } else {
    _doDrop();
  }
}