ReduxNotifierTester<T> constructor
ReduxNotifierTester<T> ({
- required ReduxNotifier<
T> notifier, - bool runInitialAction = false,
- T? initialState,
Implementation
ReduxNotifierTester({
required this.notifier,
bool runInitialAction = false,
T? initialState,
}) {
if (initialState != null) {
notifier._state = initialState;
} else {
notifier._state = notifier.init();
}
if (runInitialAction) {
notifier.postInit();
}
}