StreamChatCore constructor

const StreamChatCore({
  1. Key? key,
  2. required StreamChatClient client,
  3. required Widget child,
  4. EventHandler? onBackgroundEventReceived,
  5. Duration backgroundKeepAlive = const Duration(minutes: 1),
  6. Stream<ConnectivityResult>? connectivityStream,
})

Constructor used for creating a new instance of StreamChatCore.

StreamChatCore is a stateful widget which reacts to system events and updates Stream's connection status accordingly.

Implementation

const StreamChatCore({
  Key? key,
  required this.client,
  required this.child,
  this.onBackgroundEventReceived,
  this.backgroundKeepAlive = const Duration(minutes: 1),
  this.connectivityStream,
}) : super(key: key);