PreviewDataImage class

A utility class that forces image's width and height to be stored alongside the url.

See https://github.com/flyerhq/flutter_link_previewer.

Annotations
  • @JsonSerializable()
  • @immutable

Constructors

PreviewDataImage({required double height, required String url, required double width})
Creates preview data image.
const
PreviewDataImage.fromJson(Map<String, dynamic> json)
Creates preview data image from a map (decoded JSON).
factory

Properties

hashCode int
The hash code for this object.
no setterinherited
height double
Image height in pixels.
final
props List<Object>
Equatable props.
no setter
runtimeType Type
A representation of the runtime type of the object.
no setterinherited
stringify bool?
If set to true, the toString method will be overridden to output this instance's props.
no setterinherited
url String
Remote image URL.
final
width double
Image width in pixels.
final

Methods

noSuchMethod(Invocation invocation) → dynamic
Invoked when a nonexistent method or property is accessed.
inherited
toJson() Map<String, dynamic>
Converts preview data image to the map representation, encodable to JSON.
toString() String
A string representation of this object.
inherited

Operators

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