Version constructor

const Version(
  1. int major,
  2. int minor,
  3. int patch
)

Represents a semantic version in Jetleaf with major, minor, and patch components.

This class is used to define precise versions and to compare versions when evaluating version ranges or conditional processing.

Usage Example:

final version = Version(3, 1, 4);
final other = Version.parse('3.2.0');

print(version < other); // true
print(version >= Version(3,1,0)); // true

Implementation

const Version(this.major, this.minor, this.patch);