has method
- List<
UserCapability> capabilities
Returns true
if the list contains all of the given capabilities
. Otherwise false
.
Implementation
bool has(List<UserCapability> capabilities) =>
capabilities.every((capability) => contains(capability));