version property

Lens<PubspecYaml, Optional<String>> version
final

Implementation

static final version = Lens<PubspecYaml, Optional<String>>(
  (versionContainer) => versionContainer.version,
  (versionContainer, version) => versionContainer.copyWith(version: version),
);