sync method

T? sync()

Implementation

T? sync() {
  if (databaseMiniMethodType == DatabaseMiniMethodType.writeDatabase) {
    db.writeSync(
      content: db.encrypt(
        data: db.stateData,
        databaseMiniGeneralLibraryBaseOptions:
            db.databaseMiniGeneralLibraryBaseOptions,
      ),
    );
    return true as T;
  }

  return execute();
}