monolith_define 1.0.2 copy "monolith_define: ^1.0.2" to clipboard
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';
0
likes
130
points
602
downloads

Publisher

verified publishereaglesakura.com

Weekly Downloads

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 for different flavors and build-time constant injection.

Repository (GitHub)
View/report issues

Documentation

API reference

License

MIT (license)

Dependencies

armyknife_logger, dartx, freezed_annotation, meta, monolith, mustache_template, path

More

Packages that depend on monolith_define