percentEncode method

String percentEncode (
  1. String url
)

Implementation

String percentEncode(String url) {
  if (url == null) {
    return "";
  } else {
    return Uri.encodeComponent(url);
  }
}