restoreOneMMKVFromDirectory static method
restore one MMKV instance from srcDir
rootDir
the customize root path of the MMKV, if null then restore to the root dir of MMKV
Implementation
static bool restoreOneMMKVFromDirectory(String mmapID, String srcDir, {String? rootDir}) {
final mmapIDPtr = mmapID.toNativeUtf8();
final srcDirPtr = srcDir.toNativeUtf8();
final rootDirPtr = _string2Pointer(rootDir);
final ret = _restoreOne(mmapIDPtr, srcDirPtr, rootDirPtr);
calloc.free(mmapIDPtr);
calloc.free(srcDirPtr);
calloc.free(rootDirPtr);
return _int2Bool(ret);
}