createForwardingSubject<R> method
BehaviorSubject<R>
createForwardingSubject<R>({
- void onListen()?,
- void onCancel()?,
- bool sync = false,
override
Creates a trampoline StreamController, which can forward events in the same manner as the original Subject does. e.g. replay or behavior on subscribe.
Implementation
@override
BehaviorSubject<R> createForwardingSubject<R>({
void Function()? onListen,
void Function()? onCancel,
bool sync = false,
}) =>
BehaviorSubject(
onListen: onListen,
onCancel: onCancel,
sync: sync,
);