snapshotEvents property
Stream<TaskSnapshot>
snapshotEvents
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
Stream<TaskSnapshot> get snapshotEvents {
return _delegate.snapshotEvents
.map((snapshotDelegate) => TaskSnapshot._(storage, snapshotDelegate));
}