dart_config 0.3.0+1 dart_config: ^0.3.0+1 copied to clipboard
A set of libraries designed to provide configuration to Dart applications. Using dependency injection, the same library API can load config information from the filesystem and httprequest, formatted a [...]
Use this package as a library
Depend on it
Run this command:
With Dart:
$ dart pub add dart_config
This will add a line like this to your package's pubspec.yaml (and run an implicit dart pub get
):
dependencies:
dart_config: ^0.3.0+1
Alternatively, your editor might support dart pub get
. Check the docs for your editor to learn more.
Import it
Now in your Dart code, you can use:
import 'package:dart_config/config.dart';
import 'package:dart_config/default_browser.dart';
import 'package:dart_config/default_server.dart';
import 'package:dart_config/loaders/config_loader_filesystem.dart';
import 'package:dart_config/loaders/config_loader_httprequest.dart';
import 'package:dart_config/parsers/config_parser_json.dart';
import 'package:dart_config/parsers/config_parser_yaml.dart';