core/permissions/permission_provider
library
Classes
-
PermissionActionNotifier
-
-
PermissionTypeListKey
-
Family parameters need consistent
==/hashCode for Riverpod's
.family modifier to work correctly — a List<PermissionType>
literal does not have this ([a, b] != [a, b] for two separately
constructed lists), which silently makes every rebuild of
permissionsStatusProvider register as a brand-new provider
instance instead of reusing the existing one. This key type wraps
a List<PermissionType> in a stable, sorted, comma-joined
String — String has genuine built-in value equality, so two
lists with the same permissions (regardless of the order they
were constructed in) now correctly resolve to the same provider.