origin property

String origin

Returns a string containing the origin of the URL, that is its scheme, its domain and its port.

MDN reference

Implementation

String get origin => _uri.origin;