Mpesa constructor

Mpesa(
  1. int amount,
  2. String phoneNumber, {
  3. String? accountReference,
  4. String? transactionDesc,
})

if account reference || transactionDesc is not defined its replaced with the phone number

Implementation

Mpesa(this.amount, this.phoneNumber,
    {this.accountReference, this.transactionDesc}) {
  accountReference ??= phoneNumber;
  transactionDesc ??= phoneNumber;
}