assertUrl method

String assertUrl()

Implementation

String assertUrl() {
  if (url != null) return url!;
  if (uri != null) return uri!.toString();
  throw StateError('no url');
}