Add configurable with functions

Add more tests for call functions and fixed
This commit is contained in:
2021-03-24 14:10:25 +07:00
parent a51d5fe00b
commit 33b6355bcf
7 changed files with 67 additions and 40 deletions

View File

@@ -1,3 +1,15 @@
import 'package:configurable/dotenv_configuration_provider.dart';
import 'package:configurable/simple_configuration_provider.dart';
void main() {
print('Example');
var key = 'app.name';
var value = 'CUBETIQ Solution';
// in-memory provider (built-in)
var simpleProvider = SimpleConfigurationProvider();
// dotenv provider (from file .env)
var dotenvProvider = DotenvConfigurationProvider();
}