urlDecode method

String urlDecode(
  1. String encoded
)

Implementation

String urlDecode(String encoded) {
  try {
    //todo decodeFull or decodeComponent or decodeQueryComponent ?
    return Uri.decodeQueryComponent(encoded, encoding: utf8);
  } catch (_) {
    // UnsupportedEncodingException
    rethrow; // can't happen
  }
}