VersionInfo constructor

VersionInfo({
  1. String? name,
  2. String? appName,
  3. String? version,
  4. String? gitCommit,
  5. String? buildTags,
  6. String? goVersion,
  7. Iterable<Module>? buildDeps,
  8. String? cosmosSdkVersion,
})

Implementation

factory VersionInfo({
  $core.String? name,
  $core.String? appName,
  $core.String? version,
  $core.String? gitCommit,
  $core.String? buildTags,
  $core.String? goVersion,
  $core.Iterable<Module>? buildDeps,
  $core.String? cosmosSdkVersion,
}) {
  final _result = create();
  if (name != null) {
    _result.name = name;
  }
  if (appName != null) {
    _result.appName = appName;
  }
  if (version != null) {
    _result.version = version;
  }
  if (gitCommit != null) {
    _result.gitCommit = gitCommit;
  }
  if (buildTags != null) {
    _result.buildTags = buildTags;
  }
  if (goVersion != null) {
    _result.goVersion = goVersion;
  }
  if (buildDeps != null) {
    _result.buildDeps.addAll(buildDeps);
  }
  if (cosmosSdkVersion != null) {
    _result.cosmosSdkVersion = cosmosSdkVersion;
  }
  return _result;
}