configurable/example/example.dart

15 lines
393 B
Dart
Raw Normal View History

import 'package:configurable/dotenv_configuration_provider.dart';
import 'package:configurable/simple_configuration_provider.dart';
2021-03-24 13:52:20 +07:00
void main() {
var key = 'app.name';
var value = 'CUBETIQ Solution';
// in-memory provider (built-in)
var simpleProvider = SimpleConfigurationProvider();
// dotenv provider (from file .env)
var dotenvProvider = DotenvConfigurationProvider();
2021-03-24 13:52:20 +07:00
}