2021-03-24 14:10:25 +07:00
|
|
|
import 'package:configurable/dotenv_configuration_provider.dart';
|
|
|
|
import 'package:configurable/simple_configuration_provider.dart';
|
|
|
|
|
2021-03-24 13:52:20 +07:00
|
|
|
void main() {
|
2021-03-24 14:10:25 +07:00
|
|
|
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
|
|
|
}
|