initiaLizedSync method
void
initiaLizedSync(
{ - Map? defaultData,
})
Implementation
void initiaLizedSync({
Map<dynamic, dynamic>? defaultData,
}) {
if (isInitialized) {
return;
}
stateData.clear();
try {
setDefaultData(
defaultData: json.decode(decrypt(
data_base64: readSync(),
databaseMiniGeneralLibraryBaseOptions:
databaseMiniGeneralLibraryBaseOptions,
)),
);
} catch (e) {
if (databaseMiniGeneralLibraryBaseOptions.isIgnoreError == false) {
rethrow;
}
}
this.defaultData = defaultData ?? {};
setDefaultData(defaultData: this.defaultData);
isInitialized = true;
}