rc 0.3.3 copy "rc: ^0.3.3" to clipboard
rc: ^0.3.3 copied to clipboard

RC is a configuration/collection manager that uses .(dot) to set and read collection contents.

example/main.dart

import 'package:rc/rc.dart';

void main() {
  final config = RC();

  // Whether a keys.
  print(config.contains('app.debug')); // false

  // Sets a value by keys.
  config.set('app.debug', 'odroe:rc');
  print(config.contains('app.debug')); // true

  // Reads a keys.
  print(config('app.debug')); // 'odroe:rc'

  // Reads a collect
  print(config('app')); // {"debug": "odroe:rc"}

  // Update a keys
  config.update<String>('app.debug', (value) => "new value");
  print(config('app.debug')); // 'new value'
}
1
likes
150
points
667
downloads

Publisher

verified publisherodroe.dev

Weekly Downloads

RC is a configuration/collection manager that uses .(dot) to set and read collection contents.

Repository (GitHub)
View/report issues

Documentation

API reference

License

BSD-3-Clause (license)

Dependencies

path

More

Packages that depend on rc