FlagDeckServerSentEvents constructor

FlagDeckServerSentEvents({
  1. required String apiKey,
  2. dynamic onConnect(
    1. FlagUpdatedResponse
    )?,
  3. dynamic onEvent(
    1. String? flagKey,
    2. EventFluxData,
    3. FlagUpdatedResponse
    )?,
  4. dynamic handleConnectionError(
    1. dynamic error
    )?,
  5. dynamic handleDisconnect()?,
  6. Map<String, String>? header,
  7. ReconnectConfig? reconnectConfig,
})

Implementation

FlagDeckServerSentEvents({
  required this.apiKey,
  this.onConnect,
  this.onEvent,
  this.handleConnectionError,
  this.handleDisconnect,
  this.header,
  this.reconnectConfig,
}) {
  connect();
}