getLastInsertId method
Last insert id.
Implementation
int? getLastInsertId() {
// Check the row count first, if 0 it means no insert
// Fix issue #402
if (getUpdatedRows() == 0) {
return null;
}
var id = _ffiDb.lastInsertRowId;
if (logLevel >= sqfliteLogLevelSql) {
print('$_prefix Inserted $id');
}
return id;
}