dart_build_constants 1.0.0 copy "dart_build_constants: ^1.0.0" to clipboard
dart_build_constants: ^1.0.0 copied to clipboard

Declares Flutter-compatible build constants without a Flutter dependency. The constants are based on Dart's compile-time environment values.

Use this package as a library

Depend on it

Run this command:

With Dart:

 $ dart pub add dart_build_constants

With Flutter:

 $ flutter pub add dart_build_constants

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

dependencies:
  dart_build_constants: ^1.0.0

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

Import it

Now in your Dart code, you can use:

import 'package:dart_build_constants/dart_build_constants.dart';
0
likes
150
points
139
downloads

Documentation

API reference

Publisher

verified publisherechoellet.dev

Weekly Downloads

Declares Flutter-compatible build constants without a Flutter dependency. The constants are based on Dart's compile-time environment values.

Repository (GitHub)
View/report issues

Topics

#build #environment #constants

License

BSD-3-Clause (license)

More

Packages that depend on dart_build_constants