create static method
Future<Storage>
create({
- required StorageGet get,
- required StorageSet set,
- required StorageSetUnchecked setUnchecked,
- required StorageRemove remove,
- required StorageRemoveUnchecked removeUnchecked,
Implementation
static Future<Storage> create({
required StorageGet get,
required StorageSet set,
required StorageSetUnchecked setUnchecked,
required StorageRemove remove,
required StorageRemoveUnchecked removeUnchecked,
}) async {
final instance = Storage._(get, set, setUnchecked, remove, removeUnchecked);
final lib = createLib();
instance.storage = await lib.newStaticMethodStorageDartWrapper(
instanceHash: instance.instanceHash,
);
return instance;
}