StreamChatCore constructor
const
StreamChatCore({
- Key? key,
- required StreamChatClient client,
- required Widget child,
- EventHandler? onBackgroundEventReceived,
- Duration backgroundKeepAlive = const Duration(minutes: 1),
- 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({
super.key,
required this.client,
required this.child,
this.onBackgroundEventReceived,
this.backgroundKeepAlive = const Duration(minutes: 1),
this.connectivityStream,
});