import 'package:invoiceninja_flutter/redux/app/app_actions.dart'; import 'package:redux/redux.dart'; final loadingReducer = combineReducers([ TypedReducer(_setLoading), TypedReducer(_setLoaded), ]); bool _setLoading(bool state, StartLoading action) { return true; } bool _setLoaded(bool state, StopLoading action) { return false; } final savingReducer = combineReducers([ TypedReducer(_setSaving), TypedReducer(_setSaved), ]); bool _setSaving(bool state, StartSaving action) { return true; } bool _setSaved(bool state, StopSaving action) { return false; }