TransmitOptions class

Options for creating a Transmit client.

Constructors

TransmitOptions({required String baseUrl, String uidGenerator()?, dynamic eventSourceFactory(Uri, {bool withCredentials})?, TransmitHttpClient httpClientFactory(String baseUrl, String uid)?, void beforeSubscribe(Request)?, void beforeUnsubscribe(Request)?, int? maxReconnectAttempts, Duration? reconnectInitialDelay, Duration? reconnectMaxDelay, double? reconnectBackoffMultiplier, double? reconnectJitterFactor, void onReconnectAttempt(int)?, void onReconnectFailed()?, void onReconnecting()?, void onReconnected()?, void onDisconnected()?, void onSubscribeFailed(Response)?, void onSubscription(String)?, void onUnsubscription(String)?, Duration? heartbeatTimeout})

Properties

baseUrl String
final
beforeSubscribe → void Function(Request)?
final
beforeUnsubscribe → void Function(Request)?
final
eventSourceFactory → dynamic Function(Uri, {bool withCredentials})?
final
hashCode int
The hash code for this object.
no setterinherited
heartbeatTimeout Duration?
final
httpClientFactory TransmitHttpClient Function(String baseUrl, String uid)?
final
maxReconnectAttempts int?
final
onDisconnected → void Function()?
final
onReconnectAttempt → void Function(int)?
final
onReconnected → void Function()?
final
onReconnectFailed → void Function()?
final
onReconnecting → void Function()?
final
onSubscribeFailed → void Function(Response)?
final
onSubscription → void Function(String)?
final
onUnsubscription → void Function(String)?
final
reconnectBackoffMultiplier double?
final
reconnectInitialDelay Duration?
final
reconnectJitterFactor double?
final
reconnectMaxDelay Duration?
final
runtimeType Type
A representation of the runtime type of the object.
no setterinherited
uidGenerator String Function()?
final

Methods

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

Operators

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