RemoteCancellation class

Some unexpected errors can send a cancel event and terminate the connection. The cause is described in the reason provided for this Exception. Some potential causes are as follows:

  1. The Firebase Realtime Database Rules no longer allow a read at the requested location. The reason description for this cause is "Permission denied."
  2. A write triggered an event streamer that sent a large JSON tree that exceeds our limit, 512MB. The reason for this cause is "The specified payload is too large, please request a location with less data."
Implemented types

Constructors

RemoteCancellation(String reason)
Default constructor.

Properties

hashCode int
The hash code for this object.
no setterinherited
reason String
The reason why the stream has been canceled.
final
runtimeType Type
A representation of the runtime type of the object.
no setterinherited

Methods

noSuchMethod(Invocation invocation) → dynamic
Invoked when a nonexistent method or property is accessed.
inherited
toString() String
A string representation of this object.
override

Operators

operator ==(Object other) bool
The equality operator.
inherited