Website class

A website or URL.

iOS and Android both support multiple websites with various labels.

Annotations

Constructors

Website(String url, {WebsiteLabel label: WebsiteLabel.homepage, String customLabel: ""})
Website.fromJson(Map<String, dynamic> json)
factory

Properties

customLabel String
If customLabel is WebsiteLabel.custom, free-form user-chosen label.
@JsonKey(defaultValue: ""), read / write
hashCode int
The hash code for this object. [...]
read-only, inherited
label WebsiteLabel
The label or type of URL it is. If custom, the free-form label can be found in customLabel. [...]
@JsonKey(defaultValue: WebsiteLabel.homepage), read / write
runtimeType Type
A representation of the runtime type of the object.
read-only, inherited
url String
The website/URL
@JsonKey(required: true), read / write

Methods

noSuchMethod(Invocation invocation) → dynamic
Invoked when a non-existent method or property is accessed. [...]
inherited
toJson() Map<String, dynamic>
toString() String
Returns a string representation of this object.
inherited

Operators

operator ==(Object other) bool
The equality operator. [...]
inherited