PackageCompatibility class
Parses the constraint forms the package SDK itself emits and compares them against a concrete running version.
Supported constraint forms:
- caret:
^6.1.0(also^6.1,^6) - range:
>=6.1.0 <7.0.0 - exact:
6.1.0
The comparison is deliberately conservative: it derives the minimum required version from the constraint and compares majors/minors.
Properties
- hashCode → int
-
The hash code for this object.
no setterinherited
- runtimeType → Type
-
A representation of the runtime type of the object.
no setterinherited
Methods
-
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
Static Methods
-
check(
{required String packageConstraint, required String appVersion}) → PackageCompatibilityResult -
Checks
packageConstraint(the package's declared zuraffa constraint) againstappVersion(the running zuraffa version).