external<T2> method
Dispatcher<ReduxNotifier<T2> , T2>
external<T2>(
- ReduxNotifier<
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<ReduxNotifier<T2>, T2> external<T2>(
ReduxNotifier<T2> notifier,
) {
return Dispatcher<ReduxNotifier<T2>, T2>(
notifier: notifier,
debugOrigin: debugLabel,
debugOriginRef: this,
);
}