capabilities property
The capabilities the user has
Implementation
List<UserCapability> get capabilities {
List<UserCapability> capabilities = [];
for (UserCapability capability in UserCapability.values) {
var mask = 1 << capability.index;
if (capabilitiesBitMask & mask != 0) capabilities.add(capability);
}
return capabilities;
}