allows method

bool allows (Version version)
override

Returns true if this constraint allows version.

Implementation

bool allows(Version version) =>
    ranges.any((constraint) => constraint.allows(version));