setInfo method
Sets the partition info indexed by key
.
name
: The partition namekey
: The keyinfo
: The info
Implementation
@override
Future<void> setInfo(String name, String key, I info) {
final box = _adapter.box<O>(name);
if (box != null) {
final entity = box.get(key.hashCode);
if (entity != null) {
_writeInfo(entity, info);
box.put(entity, mode: PutMode.update);
}
}
return Future.value();
}