UrlPreviewModel class
Constructors
- UrlPreviewModel({String? siteName, String? title, String? description, String? image})
Properties
- description ↔ String?
-
getter/setter pair
- firstLink ↔ String?
-
getter/setter pair
- hasData → bool
-
no setter
- hashCode → int
-
The hash code for this object.
no setterinherited
- html ↔ String?
-
HTML
getter/setter pair
- image ↔ String?
-
getter/setter pair
- runtimeType → Type
-
A representation of the runtime type of the object.
no setterinherited
- siteName ↔ String?
-
getter/setter pair
- text ↔ String?
-
The input text that may contain a URL.
getter/setter pair
- title ↔ String?
-
getter/setter pair
Methods
-
getFirstLink(
) → String? - Attempts to extract link from a string.
-
getMeta(
Document document, String parameter) → String? -
getOGTag(
Document document, String parameter) → String? -
getTag(
Document document, String tag) → String? -
getUrlContent(
) → Future< String> -
load(
String? text) → Future -
noSuchMethod(
Invocation invocation) → dynamic -
Invoked when a nonexistent method or property is accessed.
inherited
-
parseHtml(
String body) → dynamic -
toString(
) → String -
A string representation of this object.
override
Operators
-
operator ==(
Object other) → bool -
The equality operator.
inherited