goToSpace function
- dynamic localContext,
- 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}),
);
}