deleteRow method
void
deleteRow(
- dynamic primaryKey
Implementation
void deleteRow(dynamic primaryKey) {
if (!hasPrimaryKey) {
throw StateError(
'deleteRow called on no-PK table "$tableName". '
'Rebuild the cache via applyTransactionUpdate or loadFromSerializable instead.',
);
}
_rowsByPrimaryKey.remove(primaryKey);
_refreshRowsNotifier();
if (_rowNotifiers.containsKey(primaryKey)) {
_notifyRowListeners([primaryKey]);
}
}