cancel method
Cancels the current task.
Calling this method will cause the task to fail. Both the delegating task Future and stream (snapshotEvents) will trigger an error with a FirebaseException.
Implementation
Future<bool> cancel() => _delegate.cancel();