update<T> method

void update<T>(
  1. String keys,
  2. T updater(
    1. T? value
    )
)

Updates a value by dotiable keys with updater callbacl.

Example:

config.update<bool>('a.b', (value) => value != true ? true : false);

Implementation

void update<T>(String keys, T Function(T? value) updater) {
  set(keys, updater(this<T>(keys)));
}