EventSource<T> class

Constructors

EventSource({required String url, required T parser(String data), Client? httpClient, HttpMethod method = HttpMethod.get, Map<String, dynamic>? params, FutureOr<Map<String, String>> headers()?, Duration retryDelay = Duration.zero, int? maxRetryCount, SseHookOnMessage<T>? onMessage, SseHookOnOpen<T>? onOpen, SseHookOnClose<T>? onClose, SseHookOnError<T>? onError, String? lastEventId})

Properties

hashCode int
The hash code for this object.
no setterinherited
isClosed bool
no setter
lastEventId String?
getter/setter pair
method HttpMethod
final
parser ↔ T Function(String data)
getter/setter pair
runtimeType Type
A representation of the runtime type of the object.
no setterinherited
url String
final

Methods

close() → void
noSuchMethod(Invocation invocation) → dynamic
Invoked when a nonexistent method or property is accessed.
inherited
toStream() Stream<T>
toString() String
A string representation of this object.
inherited

Operators

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