writeVersion method

Future<bool> writeVersion(
  1. Version version
)

Write a package version.

Implementation

Future<bool> writeVersion(Version version) async {
  await ready;
  if (setVersion(version)) {
    await write();
    return true;
  }

  return false;
}