separatedItems property

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

Shorthand property to get all separated items

Implementation

@JsonKey(ignore: true)
List<CartItem> get separatedItems {
  return this.allItems.where((i) => i.quantitySeparated > 0).toList();
}