initiaLizedSync method
void
initiaLizedSync(
{ - Map defaultData = const {},
})
Implementation
void initiaLizedSync({
Map<dynamic, dynamic> defaultData = const {},
}) {
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;
}