LinkPreviewOptions class
Describes the options used for link preview generation.
- Annotations
-
- @JsonSerializable.new(includeIfNull: false)
Constructors
- LinkPreviewOptions({bool? isDisabled, String? url, bool? preferSmallMedia, bool? preferLargeMedia, bool? showAboveText})
-
LinkPreviewOptions.fromJson(Map<
String, dynamic> json) -
factory
Properties
- hashCode → int
-
The hash code for this object.
no setterinherited
- isDisabled ↔ bool?
-
Whether the link preview is disabled.
getter/setter pair
- preferLargeMedia ↔ bool?
-
Whether the media in the link preview is supposed to be enlarged.
getter/setter pair
- preferSmallMedia ↔ bool?
-
Whether the media in the link preview is supposed to be shrunk.
getter/setter pair
- runtimeType → Type
-
A representation of the runtime type of the object.
no setterinherited
- showAboveText ↔ bool?
-
Whether the link preview must be shown above the message text.
getter/setter pair
- url ↔ String?
-
URL to use for the link preview.
getter/setter pair
Methods
-
noSuchMethod(
Invocation invocation) → dynamic -
Invoked when a nonexistent method or property is accessed.
inherited
-
toJson(
) → Map< String, dynamic> -
toString(
) → String -
A string representation of this object.
inherited
Operators
-
operator ==(
Object other) → bool -
The equality operator.
inherited