You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
store .substateStream<UserState>((AppState appState) => appState.user) .listen((onData) { print("user changed"); });
above line is giving me following compile time error any suggestion how to get away with this
Error: The function expression type '(#lib1::AppState) → #lib2::UserState' isn't of expected type '(#lib3::Built<dynamic, dynamic>) → #lib2::UserState'. Change the type of the function expression or the context in which it is used. .substateStream<UserState>((AppState appState) => appState.user)
The text was updated successfully, but these errors were encountered:
store .substateStream<UserState>((AppState appState) => appState.user) .listen((onData) { print("user changed"); });
above line is giving me following compile time error any suggestion how to get away with this
Error: The function expression type '(#lib1::AppState) → #lib2::UserState' isn't of expected type '(#lib3::Built<dynamic, dynamic>) → #lib2::UserState'. Change the type of the function expression or the context in which it is used. .substateStream<UserState>((AppState appState) => appState.user)
The text was updated successfully, but these errors were encountered: