fromStr static method

Future<Url> fromStr(
  1. String uri
)

Implementation

static Future<Url> fromStr(String uri) async {
  try {
    await PConfig.initializeApp();
    final res = FfiUrl.fromStr(url: uri);
    return Url._(field0: res.field0);
  } on error.PayjoinError catch (e) {
    throw mapPayjoinError(e);
  }
}