snapshotEvents property

  1. @override
Stream<TaskSnapshot> snapshotEvents
override

Returns a Stream of TaskSnapshot events.

If the task is canceled or fails, the stream will send an error event. See TaskState for more information of the different event types.

If you do not need to know about on-going stream events, you can instead await this Task directly.

Implementation

@override
Stream<TaskSnapshot> get snapshotEvents {
  return delegate.asStream();
}