shouldReplaceCurrentRoute function
- String uri
Implementation
bool shouldReplaceCurrentRoute(String uri) {
if (!uri.startsWith(chatRoomUriMatcher)) {
return false;
}
final currentUri = rootNavKey.currentContext!.read(currentRoutingLocation);
return currentUri.startsWith(chatRoomUriMatcher);
}