Website class

This class models a reference to a website address.

Implemented types
Annotations

Constructors

Website({required String label, required String url})
A reference to a website address.
const
Website.fromMap(Map<String, dynamic> map)
Creates a Website instance starting from a Map<String, dynamic> map.

Properties

hashCode int
The hash code for this object.
no setteroverride
label String
The website label. It is useful for distinguishing different websites.
final
runtimeType Type
A representation of the runtime type of the object.
no setterinherited
uri Uri
Gets the corresponding Uri for this website URL.
no setter
url String
The URL of this website.
final

Methods

compareTo(covariant Website other) int
The order of the comparisons is:
override
noSuchMethod(Invocation invocation) → dynamic
Invoked when a nonexistent method or property is accessed.
inherited
open({bool forceSafariVC = false, bool forceWebView = false}) Future<bool>
Open this website.
toMap() Map<String, dynamic>
Creates a Map<String, dynamic> map representation of this instance.
toString() String
A string representation of this object.
inherited

Operators

operator <(covariant Website other) bool
Returns if this instance is less than the other.
operator <=(covariant Website other) bool
Return if this instance is less than or equal to the other.
operator ==(covariant Website other) bool
The equality operator.
override
operator >(covariant Website other) bool
Return if this instance is greater than the other.
operator >=(covariant Website other) bool
Return if this instance is greater than or equal to the other.