confirmOrder method Null safety

Future<PaymentFrameModel> confirmOrder(
  1. {required int customerId,
  2. int? paymentOptionId,
  3. int? addressId,
  4. required int loyaltyPoints,
  5. required double finalAmount,
  6. int? storeId}
)

It's used to confirm the order if the payment is Credit card.

It will return the data of the payment gatway.

Implementation

Future<PaymentFrameModel> confirmOrder(
    {required int customerId,
    int? paymentOptionId,
    int? addressId,
    required int loyaltyPoints,
    required double finalAmount,
    int? storeId});