acceptsProfiles abstract method

bool acceptsProfiles(
  1. Profiles profiles
)

Whether the profile condition profiles holds for the active profiles, or for the default profiles while none is active.

Use it with a Profiles built once; matchesProfiles takes the expressions directly.

environment.acceptsProfiles(Profiles.of(['prod', 'staging']));

Implementation

bool acceptsProfiles(Profiles profiles);