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

@@ -3,10 +3,10 @@ import 'package:flutter/material.dart';
import 'package:flutter_wisetronic/store/actions.dart';
import 'package:redux/redux.dart';
final contextReducer = combineReducers<BuildContext>([
TypedReducer<BuildContext, UpdateContext>(_updateContext)
final contextReducer = combineReducers<BuildContext?>([
TypedReducer<BuildContext?, UpdateContext>(_updateContext)
]);
BuildContext _updateContext(BuildContext context, action) {
BuildContext? _updateContext(BuildContext? context, action) {
return action.context;
}