createPlainUrl static method

String createPlainUrl(
  1. String url
)

Implementation

static String createPlainUrl(String url) {
  if (url.isEmpty) return url;

  String plainUrl = url;
  if (!plainUrl.endsWith('/')) {
    plainUrl = '$url/';
  }
  return plainUrl;
}