SafeUrls class

Helpers for opening links safely.

Properties

hashCode → int
The hash code for this object.
no setterinherited
runtimeType → Type
A representation of the runtime type of the object.
no setterinherited

Methods

noSuchMethod(Invocation invocation) → dynamic
Invoked when a nonexistent method or property is accessed.
inherited
toString() → String
A string representation of this object.
inherited

Operators

operator ==(Object other) → bool
The equality operator.
inherited

Static Methods

https(String url) → Uri?
url as an HTTPS address: http:// is upgraded and a missing scheme gets https://. Null when it is not a web address (e.g. javascript:, file:, intent:).
isHttps(String url) → bool
Whether url is an HTTPS address with a host.