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

@@ -4,10 +4,10 @@ import 'package:flutter_wisetronic/models/user.dart';
import '../actions.dart';
final userReducer = combineReducers<User>([
TypedReducer<User, UpdateCurrentUser>(_updateCurrentUser)
final userReducer = combineReducers<User?>([
TypedReducer<User?, UpdateCurrentUser>(_updateCurrentUser)
]);
User _updateCurrentUser(User user, action) {
User? _updateCurrentUser(User? user, action) {
return action.user;
}