StreamEvent class

A generic stream event, returned by the server via SSE.

Implementers
Annotations
  • @freezed

Constructors

StreamEvent.authRevoked()
An event sent by the server when the used idToken has expired.
const
factory
StreamEvent.patch({required String path, required dynamic data})
A patch event, indicating data was patched.
const
factory
StreamEvent.put({required String path, required dynamic data})
A put event, indicating data was created, updated or deleted.
const
factory

Properties

hashCode int
The hash code for this object.
no setterinherited
runtimeType Type
A representation of the runtime type of the object.
no setterinherited

Methods

map<TResult extends Object?>({required TResult put(StreamEventPut value), required TResult patch(StreamEventPatch value), required TResult authRevoked(StreamEventAuthRevoked value)}) → TResult
inherited
maybeMap<TResult extends Object?>({TResult put(StreamEventPut value)?, TResult patch(StreamEventPatch value)?, TResult authRevoked(StreamEventAuthRevoked value)?, required TResult orElse()}) → TResult
inherited
maybeWhen<TResult extends Object?>({TResult put(String path, dynamic data)?, TResult patch(String path, dynamic data)?, TResult authRevoked()?, required TResult orElse()}) → TResult
inherited
noSuchMethod(Invocation invocation) → dynamic
Invoked when a nonexistent method or property is accessed.
inherited
toJson() Map<String, dynamic>
inherited
toString() String
A string representation of this object.
inherited
when<TResult extends Object?>({required TResult put(String path, dynamic data), required TResult patch(String path, dynamic data), required TResult authRevoked()}) → TResult
inherited

Operators

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