rc 0.3.1 copy "rc: ^0.3.1" to clipboard
rc: ^0.3.1 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
0
pub points
7%
popularity

Publisher

verified publisherodroe.dev

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

Repository (GitHub)
View/report issues

License

unknown (license)

Dependencies

path

More

Packages that depend on rc