parseInvoice method

Future<LNInvoice> parseInvoice({
  1. required String invoice,
  2. dynamic hint,
})
override

Implementation

Future<LNInvoice> parseInvoice({required String invoice, dynamic hint}) {
  var arg0 = _platform.api2wire_String(invoice);
  return _platform.executeNormal(FlutterRustBridgeTask(
    callFfi: (port_) => _platform.inner.wire_parse_invoice(port_, arg0),
    parseSuccessData: _wire2api_ln_invoice,
    parseErrorData: _wire2api_FrbAnyhowException,
    constMeta: kParseInvoiceConstMeta,
    argValues: [invoice],
    hint: hint,
  ));
}