has method

bool has(
  1. List<UserCapability> capabilities
)

Returns true if the list contains all of the given capabilities. Otherwise false.

Implementation

bool has(List<UserCapability> capabilities) => capabilities.every(contains);