assertUrl method

String assertUrl()

Implementation

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