Version.fromMajorAndMinor constructor

Version.fromMajorAndMinor({
  1. required int major,
  2. required int minor,
})

Serializes this instance to a JSON-compatible map.

Used internally, not intended for direct use by consumers. The map structure may change without notice.

Implementation

factory Version.fromMajorAndMinor({
  required final int major,
  required final int minor,
}) {
  return Version(encodedVersion: (minor << 16) | major);
}