insertId property

  1. @override
int get insertId
override

Returns the auto-generated ID from the last INSERT operation. This is particularly useful when inserting records into tables with auto-increment primary keys.

Implementation

@override
int get insertId => resultSet.lastInsertID.toInt();