cubetiq_dart_shared/README.md

38 lines
788 B
Markdown
Raw Permalink Normal View History

# CUBETIQ Dart Shared
A minimal dart functions, utils and extensions for CUBETIQ Developers.
# Features
- Configurable
- Text Formatter
2021-06-01 19:41:14 +07:00
## Usage
A simple configurable usage example:
2021-06-01 19:41:14 +07:00
```dart
import 'package:cubetiq/configurable.dart'
show
SystemConfig,
getConfigOrNull,
SimpleConfigurationProvider,
setConfig;
2021-06-01 19:41:14 +07:00
main() {
SystemConfig.setProvider(SimpleConfigurationProvider());
setConfig('hello', 'Be the World!');
var title = getConfigOrNull('hello', defaultValue: 'Just Hello');
print(title); //output will be: Be the World
2021-06-01 19:41:14 +07:00
}
```
## Contributors
- Sambo Chea <sombochea@cubetiqs.com>
2021-06-01 19:41:14 +07:00
## Features and bugs
Please file feature requests and bugs at the [issue tracker][tracker].
[tracker]: https://git.cubetiqs.com/CUBETIQ/cubetiq_dart_shared/issues