inserted property

bool inserted
final

Whether the write created the record rather than updating one.

Not the same question as record.version == 1: an update that changed nothing leaves a record at version one too.

Implementation

final bool inserted;