decode static method

UR decode(
  1. String message
)

Implementation

static UR decode(String message) {
  final components = parse(message);
  if (components[1].isEmpty) {
    throw InvalidPathLengthError();
  }

  final body = components[1][0];
  return decodeBody(components[0], body);
}