MpesaB2B.paybill constructor Null safety

MpesaB2B.paybill(
  1. Mpesa mpesa,
  2. {required String shortCode,
  3. required double amount,
  4. required String remarks,
  5. required String? accountReference,
  6. required String queueTimeOutURL,
  7. required String resultURL}
)

Implementation

MpesaB2B.paybill(
  this.mpesa,
  {
    required this.shortCode,
    required this.amount,
    required this.remarks,
    required this.accountReference,
    required this.queueTimeOutURL,
    required this.resultURL,
  }
){
  commandID = BbCommandId.BusinessPayBill;
  identifierType = IdentifierType.OrganizationShortCode;
}