delete method
Implementation
Future delete() {
if (this.id != null) {
return this
.repository
.deleteById(id: this.id as String, database: this.database);
}
return this.repository.deleteAll();
}
Future delete() {
if (this.id != null) {
return this
.repository
.deleteById(id: this.id as String, database: this.database);
}
return this.repository.deleteAll();
}