origin property
String
get
origin
The base URL of the running server. Throws in handler mode.
Implementation
String get origin {
final o = _origin;
if (o == null) {
throw StateError(
'origin is only available in serve mode — use TestClient.serve()');
}
return o;
}