cartItems property

List<CartItem> cartItems
@JsonKey(ignore: true)

Shorthand property to get only the regular AND promotional items (at the cart we show only those two items)

Implementation

@JsonKey(ignore: true)
List<CartItem> get cartItems {
  return this.allItems.where((i) => !i.isGift).toList();
}