env_variables 1.0.1 copy "env_variables: ^1.0.1" to clipboard
env_variables: ^1.0.1 copied to clipboard

Access Environment Variables defined by dart command line or the platform environment.

Use this package as a library

Depend on it

Run this command:

With Dart:

 $ dart pub add env_variables

With Flutter:

 $ flutter pub add env_variables

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

dependencies:
  env_variables: ^1.0.1

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:env_variables/env_variables.dart';
1
likes
150
pub points
68%
popularity

Publisher

verified publishernogueira.cc

Access Environment Variables defined by dart command line or the platform environment.

Repository (GitHub)
View/report issues

Documentation

API reference

License

BSD-3-Clause (license)

More

Packages that depend on env_variables