create method Null safety
Implementation
HotlineSubscription create(dynamic channel, {required Function onReceived, required Function onConfirmed, Function? onUnsubscribed, Function? onRejected}) {
final identifier = _getChannelIdentifier(channel);
HotlineSubscription subscription = HotlineSubscription(identifier, this, onReceived: onReceived, onConfirmed: onConfirmed, onRejected: onRejected, onUnsubscribed: onUnsubscribed);
_subscriptions.add(subscription);
return subscription;
}