Storage.set constructor

Storage.set(
  1. String name, {
  2. bool autoNamespace = true,
  3. required String key,
  4. required dynamic value,
})

Here you can set one key to a specific value.

Implementation

Storage.set(
  this.name, {
  this.autoNamespace = true,
  required String key,
  required dynamic value,
})  : nbt = {key: value},
      // ignore: prefer_initializing_formals
      key = key,
      _type = _StorageType.merge;