goToSpace function

void goToSpace(
  1. dynamic localContext,
  2. String spaceId
)

helper to figure out how to route to the specific chat room

Implementation

void goToSpace(BuildContext localContext, String spaceId) {
  navigateOnRightBranch(
    localContext,
    ShellBranch.homeShell,
    (navContext) => navContext
        .pushNamed(Routes.space.name, pathParameters: {'spaceId': spaceId}),
  );
}