OrMultipleVersionConstraint class
Subtype of MultipleVersionConstraintNode that at least one constraints
matched.
Unlike AndMultipleVersionConstraint, it required
OrConstraintRecordSection, a mixin extended from
VersionConstraintRecord that accepted in constraints
. Only
VersionConstraintNode and AndMultipleVersionConstraint can be applied.
- Inheritance
-
- Object
- MultipleVersionConstraintNode<
OrConstraintRecordSection> - OrMultipleVersionConstraint
- Mixed-in types
- Annotations
-
- @sealed
Constructors
-
OrMultipleVersionConstraint.new([List<
OrConstraintRecordSection> ? constraints]) - Construct raw data of OrMultipleVersionConstraint with given List of OrConstraintRecordSection.
Properties
- constraintsItems → int
-
Get an int of
T
contains in this MultipleVersionConstraintNode.no setterinherited - hashCode → int
-
The hash code for this object.
no setterinherited
- runtimeType → Type
-
A representation of the runtime type of the object.
no setterinherited
Methods
-
inRange(
SemVer version, {bool excludePreRelease = true}) → bool -
Check
version
matched at least one of the OrConstraintRecordSection inconstraints
.override -
noSuchMethod(
Invocation invocation) → dynamic -
Invoked when a nonexistent method or property is accessed.
inherited
-
toString(
) → String -
A string representation of this object.
inherited
Operators
-
operator ==(
Object other) → bool -
The equality operator.
inherited