darto_env 1.0.1
darto_env: ^1.0.1 copied to clipboard
Environment variable loader for Darto. Reads from .env files and Platform.environment with typed accessors.
Use this package as a library
Depend on it
Run this command:
With Dart:
$ dart pub add darto_envWith Flutter:
$ flutter pub add darto_envThis will add a line like this to your package's pubspec.yaml (and run an implicit dart pub get):
dependencies:
darto_env: ^1.0.1Alternatively, 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:darto_env/darto_env.dart';