StreamChannel constructor
const
StreamChannel({
- Key? key,
- required Widget child,
- required Channel channel,
- bool showLoading = true,
- String? initialMessageId,
- ErrorWidgetBuilder errorBuilder = _defaultErrorBuilder,
- WidgetBuilder loadingBuilder = _defaultLoadingBuilder,
Creates a new instance of StreamChannel. Both child and channel must be supplied and not null.
Implementation
const StreamChannel({
super.key,
required this.child,
required this.channel,
this.showLoading = true,
this.initialMessageId,
this.errorBuilder = _defaultErrorBuilder,
this.loadingBuilder = _defaultLoadingBuilder,
});