IsNew property

  1. @override
bool get IsNew
override
Gets a value indicating whether this object is a real store item, or if it's a local object that has yet to be saved.

Implementation

@override
bool get IsNew {
  // Item attachments don't have an Id, need to check whether the
  // parentAttachment is new or not.
  if (this.IsAttachment) {
    return this.ParentAttachment!.IsNew;
  } else {
    return super.IsNew;
  }
}