external<T2> method

Dispatcher<BaseReduxNotifier<T2>, T2> external<T2>(
  1. BaseReduxNotifier<T2> notifier
)
inherited

Use this method to dispatch external actions within an action. This ensures that the dispatched action has the correct debugOrigin.

It does not use the exact N type because then Dart cannot infer T2 type. This is okay because the developer won't access N inside the dispatcher anyway.

Usage: class MyNotifier extends ReduxNotifier

Implementation

Dispatcher<BaseReduxNotifier<T2>, T2> external<T2>(
  BaseReduxNotifier<T2> notifier,
) {
  return Dispatcher<BaseReduxNotifier<T2>, T2>(
    notifier: notifier,
    debugOrigin: debugLabel,
    debugOriginRef: this,
  );
}