StreamChannel constructor

const StreamChannel({
  1. Key? key,
  2. required Widget child,
  3. required Channel channel,
  4. bool showLoading = true,
  5. String? initialMessageId,
})

Creates a new instance of StreamChannel. Both child and client must be supplied and not null.

Implementation

const StreamChannel({
  Key? key,
  required this.child,
  required this.channel,
  this.showLoading = true,
  this.initialMessageId,
}) : super(key: key);