monolith_define 1.0.2
monolith_define: ^1.0.2 copied to clipboard
A package that automatically generates JSON files for passing to the Dart --dart-define command and a Defines class for type-safe programmatic access. It streamlines environment constant management fo [...]
Use this package as a library
Depend on it
Run this command:
With Dart:
$ dart pub add monolith_define
With Flutter:
$ flutter pub add monolith_define
This will add a line like this to your package's pubspec.yaml (and run an implicit dart pub get
):
dependencies:
monolith_define: ^1.0.2
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:monolith_define/monolith_define.dart';