completed property

Future<void> get completed

A future that completes when the effect is finished.

Implementation

Future<void> get completed {
  return controller.completed
      ? Future.value()
      : (_completer ??= Completer<void>()).future;
}