phase3: null-safe store/ (AppState fields + reducers nullable)

This commit is contained in:
2026-07-24 13:31:34 +08:00
parent 4f9aa4f683
commit cef00db911
11 changed files with 42 additions and 42 deletions

View File

@@ -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;
}