setVersion method

bool setVersion(
  1. Version version
)

True if changed

Implementation

bool setVersion(Version version) {
  return _mixin.pubspecYamlContent
      .setOrAppendKey('version', version.toString());
}