in lib/src/db/db.dart [128:139]
void _checkSealed({int? changeState, bool allowFailed = false}) {
if (_state == _transactionCommitted) {
throw StateError('The transaction has already been committed.');
} else if (_state == _transactionRolledBack) {
throw StateError('The transaction has already been rolled back.');
} else if (_state == _transactionCommitFailed && !allowFailed) {
throw StateError('The transaction has attempted commit and failed.');
}
if (changeState != null) {
_state = changeState;
}
}