isNew property

bool get isNew

Returns true if this object has not yet been saved to firestore.

Assumes new objects' ids will start with newId.

Implementation

bool get isNew {
  return AFDocumentIDGenerator.isNewId(documentId);
}