Version constructor

Version({
  1. int? major,
  2. int? minor,
  3. int? patch,
  4. String? suffix,
})

Implementation

factory Version({
  $core.int? major,
  $core.int? minor,
  $core.int? patch,
  $core.String? suffix,
}) {
  final $result = create();
  if (major != null) {
    $result.major = major;
  }
  if (minor != null) {
    $result.minor = minor;
  }
  if (patch != null) {
    $result.patch = patch;
  }
  if (suffix != null) {
    $result.suffix = suffix;
  }
  return $result;
}