10 lines
No EOL
279 B
Dart
10 lines
No EOL
279 B
Dart
import 'actions.dart';
|
|
import '../models/user.dart';
|
|
import '../models/appState.dart';
|
|
|
|
AppState appReducer(AppState state, action) {
|
|
if (action is FetchYourLocationsSucceededAction) {
|
|
return state.copyWith(yourLocations: action.fetchedYourLocations);
|
|
}
|
|
return state;
|
|
} |