Skip to content
Permalink
Branch: master
Find file Copy path
Find file Copy path
Fetching contributors…
Cannot retrieve contributors at this time
13 lines (10 sloc) 507 Bytes
import "package:built_collection/built_collection.dart";
import "package:circles_app/domain/redux/app_state.dart";
import "package:circles_app/domain/redux/message/message_actions.dart";
import "package:redux/redux.dart";
final messageReducers = <AppState Function(AppState, dynamic)>[
TypedReducer<AppState, UpdateAllMessages>(_onMessageUpdated),
];
AppState _onMessageUpdated(AppState state, UpdateAllMessages action) {
return state.rebuild((a) => a..messagesOnScreen = ListBuilder(action.data));
}
You can’t perform that action at this time.