extractOrgId function
- BuildContext context
Pulls :orgId out of the current route. Returns null on /org (the
redirect route that resolves to /org/:lastActiveOrgId).
Implementation
String? extractOrgId(BuildContext context) {
final state = GoRouterState.of(context);
return state.pathParameters['orgId'];
}