built_version 1.1.0 copy "built_version: ^1.1.0" to clipboard
built_version: ^1.1.0 copied to clipboard

Generate source code with the package's version by annotating a getter.

Use this package as a library

Depend on it

Run this command:

With Dart:

 $ dart pub add built_version

This will add a line like this to your package's pubspec.yaml (and run an implicit dart pub get):

dependencies:
  built_version: ^1.1.0

Alternatively, your editor might support dart pub get. Check the docs for your editor to learn more.

Import it

Now in your Dart code, you can use:

import 'package:built_version/built_version.dart';
0
likes
130
points
38
downloads

Documentation

API reference

Publisher

verified publishersamueljhuff.com

Weekly Downloads

Generate source code with the package's version by annotating a getter.

Repository (GitHub)
View/report issues

License

MIT (license)

Dependencies

analyzer, build, built_version_annotation, glob, meta, pub_semver, source_gen

More

Packages that depend on built_version