bool isOfflineScopeAlias(String scope) { final normalized = scope.trim().toLowerCase(); return normalized == 'offline'; } List filterConsentScopes(Iterable scopes) { return scopes .map((scope) => scope.trim()) .where((scope) => scope.isNotEmpty && !isOfflineScopeAlias(scope)) .toList(growable: false); }