configurable/lib/configurable.dart
Sambo Chea 33b6355bcf Add configurable with functions
Add more tests for call functions and fixed
2021-03-24 14:10:25 +07:00

10 lines
373 B
Dart

library configurable;
import 'package:configurable/system_config.dart';
String? getConfigOrNull(String key, {String? defaultValue}) =>
SystemConfig.getOrNull(key, defaultValue: defaultValue);
String getConfig(String key, {String? defaultValue}) =>
SystemConfig.get(key, defaultValue: defaultValue);
bool hasConfigkey(String key) => SystemConfig.containsKey(key);