Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

issue facing in implementation of substateStream #115

Open
vishant-jaiswal opened this issue Jan 19, 2019 · 0 comments
Open

issue facing in implementation of substateStream #115

vishant-jaiswal opened this issue Jan 19, 2019 · 0 comments

Comments

@vishant-jaiswal
Copy link

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)

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant