postInit method
Override this to provide a custom post initialization. The initial state is already set at this point.
Implementation
@override
void postInit() {
switch (initialAction) {
case SynchronousReduxAction<ReduxNotifier<T>, T, dynamic> action:
dispatch(action);
break;
case AsynchronousReduxAction<ReduxNotifier<T>, T, dynamic> action:
dispatchAsync(action);
break;
case null:
break;
default:
print(
'Invalid initialAction type for $debugLabel: ${initialAction.runtimeType}',
);
}
}