pubspec_data_generator 1.0.0+2 copy "pubspec_data_generator: ^1.0.0+2" to clipboard
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
40
pub points
0%
popularity

Publisher

verified publishermatthijssen.dev

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

Repository (GitLab)
View/report issues

License

AGPL-3.0 (LICENSE)

Dependencies

build, code_builder, dart_style, recase, yaml

More

Packages that depend on pubspec_data_generator