urlDecodeComponent function

String urlDecodeComponent(
  1. String value
)

Decodes a percent-encoded URI component value back to plain text.

Throws ArgumentError on malformed escapes; use safeDecodeUri to decode without throwing.

Example:

urlDecodeComponent('a%20b%26c'); // 'a b&c'

Implementation

String urlDecodeComponent(String value) => Uri.decodeComponent(value);