forked from cubetiq/cubetiq_dart_shared
Task: Add cubetiq dart shared library and functions and utils and extensions for developers and completed with configurable
This commit is contained in:
14
example/cubetiq_configurable_example.dart
Normal file
14
example/cubetiq_configurable_example.dart
Normal file
@@ -0,0 +1,14 @@
|
||||
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);
|
||||
}
|
||||
@@ -1,6 +0,0 @@
|
||||
import 'package:cubetiq_dart_shared/cubetiq_dart_shared.dart';
|
||||
|
||||
void main() {
|
||||
var awesome = Awesome();
|
||||
print('awesome: ${awesome.isAwesome}');
|
||||
}
|
||||
Reference in New Issue
Block a user