Task: Add cubetiq dart shared library and functions and utils and extensions for developers and completed with configurable

This commit is contained in:
2021-06-01 22:50:34 +07:00
parent c1437f133a
commit 14eaec7633
14 changed files with 211 additions and 47 deletions

View 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);
}

View File

@@ -1,6 +0,0 @@
import 'package:cubetiq_dart_shared/cubetiq_dart_shared.dart';
void main() {
var awesome = Awesome();
print('awesome: ${awesome.isAwesome}');
}