lastInsertId property

int? lastInsertId
final

Auto-generated integer key reported by the write, when available.

Drivers return this from the same connection and operation as the write. Applications that need portable non-integer IDs should generate them.

Implementation

final int? lastInsertId;