int nextId()

Returns the next unique id.

Source

int nextId() => ++_lastId;