final
This commit is contained in:
@@ -2,10 +2,10 @@ import 'package:flutter/material.dart';
|
||||
import 'package:flutter_wisetronic/store/actions.dart';
|
||||
import 'package:redux/redux.dart';
|
||||
|
||||
final localeReducer = combineReducers<Locale>([
|
||||
TypedReducer<Locale, UpdateLocale>(_updateLocale)
|
||||
final localeReducer = combineReducers<Locale?>([
|
||||
TypedReducer<Locale?, UpdateLocale>(_updateLocale)
|
||||
]);
|
||||
|
||||
Locale _updateLocale(Locale locale, action) {
|
||||
Locale _updateLocale(Locale? locale, action) {
|
||||
return action.locale;
|
||||
}
|
||||
Reference in New Issue
Block a user