LinkPreviewOptions class
Describes the options used for link preview generation.
Constructors
- LinkPreviewOptions({bool? isDisabled, String? url, bool? preferSmallMedia, bool? preferLargeMedia, bool? showAboveText})
-
Constructs an instance of LinkPreviewOptions.
const
-
LinkPreviewOptions.fromJson(Map<
String, dynamic> json) -
Creates an instance of LinkPreviewOptions from JSON data.
factory
Properties
- hashCode → int
-
The hash code for this object.
no setterinherited
- isDisabled → bool?
-
Optional. True, if the link preview is disabled
final
- preferLargeMedia → bool?
-
Optional. True, if the media in the link preview is suppposed to be enlarged; ignored if the URL isn't explicitly specified or media size change isn't supported for the preview
final
- preferSmallMedia → bool?
-
Optional. True, if the media in the link preview is suppposed to be shrunk; ignored if the URL isn't explicitly specified or media size change isn't supported for the preview
final
- runtimeType → Type
-
A representation of the runtime type of the object.
no setterinherited
- showAboveText → bool?
-
Optional. True, if the link preview must be shown above the message text; otherwise, the link preview will be shown below the message text
final
- url → String?
-
Optional. URL to use for the link preview. If empty, then the first URL found in the message text will be used
final
Methods
-
noSuchMethod(
Invocation invocation) → dynamic -
Invoked when a nonexistent method or property is accessed.
inherited
-
toJson(
) → Map< String, dynamic> - Creates an instance of LinkPreviewOptions from JSON data.
-
toString(
) → String -
A string representation of this object.
inherited
Operators
-
operator ==(
Object other) → bool -
The equality operator.
inherited