pubspec_data 1.0.0+2 copy "pubspec_data: ^1.0.0+2" to clipboard
pubspec_data: ^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

MIT (LICENSE)

Dependencies

pub_semver

More

Packages that depend on pubspec_data