StreamChat constructor

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

Constructor for creating a StreamChat widget

Implementation

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