Version constructor

Version(
  1. {required int major,
  2. required int minor,
  3. required int patch,
  4. required int buildNumber}
)

Default constructor for Version.

Params:

  • major: the major field of the version.
  • minor: the minor field of the version.
  • patch: the patch field of the version.
  • buildNumber: the build number field of the version.

Implementation

factory Version({
  required int major,
  required int minor,
  required int patch,
  required int buildNumber,
}) {
  return VersionImpl(
    major: major,
    minor: minor,
    patch: patch,
    buildNumber: buildNumber,
  );
}