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;
}