pubspec_data_generator 1.0.0+2
pubspec_data_generator: ^1.0.0+2 copied to clipboard

Converts the pubspec file to a Dart file in order to access information like version during runtime.

example/example.dart

import 'pubspec.g.dart' as pubspec;

void main() {
  print('Name: ${pubspec.name}');
  print('Version: ${pubspec.version}');
}
0
likes
80
pub points
0%
popularity

Publisher

matthijssen.dev

Converts the pubspec file to a Dart file in order to access information like version during runtime.

Repository (GitLab)
View/report issues

Documentation

API reference

License

AGPL 3.0 (LICENSE)

Dependencies

build, code_builder, dart_style, recase, yaml

More

Packages that depend on pubspec_data_generator