RC constructor

RC({
  1. Map<String, dynamic>? init,
  2. Set<Loader>? loaders,
  3. bool shouldWarn = true,
})

Implementation

RC({
  Map<String, dynamic>? init,
  Set<Loader>? loaders,
  bool shouldWarn = true,
}) {
  _storage[shouldWarnKeys] = shouldWarn;

  if (init != null && init.isNotEmpty) {
    for (final MapEntry(key: keys, value: value) in init.dot().entries) {
      set(keys, value);
    }
  }

  if (loaders != null && loaders.isNotEmpty) {
    for (final loader in loaders) {
      use(loader);
    }
  }
}