Skip to content

issue facing in implementation of substateStream #115

@vishant-jaiswal

Description

@vishant-jaiswal

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)

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions