removeSimpleObject method

Future<bool> removeSimpleObject(
  1. String objectName
)

Implementation

Future<bool> removeSimpleObject(String objectName) {
  if (db != null) {
    var store = StoreRef.main();
    return store.record( getObjectKey(objectName) ).delete(db!).then((value) => value != null);
  } else {
    throw VasatError("DB is null or has not been initializes. Make sure openDatabase() has been called ", status: 5100);
  }
}