extractUrlBase static method

dynamic extractUrlBase(
  1. String url
)

Implementation

static extractUrlBase(String url) {
  var index = url.lastIndexOf('/');

  if (index == -1) return './';

  return url.substring(0, index + 1);
}