# hasAllPermissions abstract method

bool hasAllPermissions(

1. Set<DomainPermission> requiredPermissions

)

Returns `true` if this domain includes all of the `requiredPermissions`.

### Example:

    if (domain.hasAllPermissions({DomainPermission.READ_FIELDS, DomainPermission.READ_METHODS})) {
      // safe to reflect
    }

## Implementation

    bool hasAllPermissions(Set<DomainPermission> requiredPermissions);