copyWith method

  1. @override
MemberCartModel copyWith({
  1. String? documentID,
  2. String? appId,
  3. List<CartItemModel>? cartItems,
})
override

Implementation

@override
MemberCartModel copyWith({
  String? documentID,
  String? appId,
  List<CartItemModel>? cartItems,
}) {
  return MemberCartModel(
    documentID: documentID ?? this.documentID,
    appId: appId ?? this.appId,
    cartItems: cartItems ?? this.cartItems,
  );
}