MakeInvoiceRequest constructor

const MakeInvoiceRequest({
  1. required dynamic amountMsat,
  2. String? description,
  3. String? descriptionHash,
  4. int? expiry,
  5. NwcMethod? method,
})

Implementation

const MakeInvoiceRequest({
  required amountMsat,
  this.description,
  this.descriptionHash,
  this.expiry,
  NwcMethod? method, // Add optional method parameter
})  : amountSat = amountMsat ~/ 1000,
      super(
          method: method ??
              NwcMethod.MAKE_INVOICE);