subscribeToast method

  1. @override
void subscribeToast(
  1. ToastCallback callback
)
override

Implementation

@override
void subscribeToast(ToastCallback callback) {
  _toastSubscription = _toastSubject.stream.listen((toast)=>callback.call(toast));
}