cubetiq_dart_shared/example/cubetiq_configurable_example.dart

15 lines
342 B
Dart
Raw Permalink Normal View History

import 'package:cubetiq/configurable.dart'
show
SystemConfig,
getConfigOrNull,
SimpleConfigurationProvider,
setConfig;
void main() {
SystemConfig.setProvider(SimpleConfigurationProvider());
setConfig('hello', 'Be the World!');
var title = getConfigOrNull('hello', defaultValue: 'Just Hello');
print(title);
}