PartialImage class

A class that represents partial image message.

Annotations
  • @JsonSerializable()
  • @immutable

Constructors

PartialImage({double? height, Map<String, dynamic>? metadata, required String name, Message? repliedMessage, required num size, required String uri, double? width})
Creates a partial image message with all variables image can have. Use ImageMessage to create a full message. You can use ImageMessage.fromPartial constructor to create a full message from a partial one.
const
PartialImage.fromJson(Map<String, dynamic> json)
Creates a partial image message from a map (decoded JSON).
factory

Properties

hashCode int
The hash code for this object.
no setterinherited
height double?
Image height in pixels.
final
metadata Map<String, dynamic>?
Additional custom metadata or attributes related to the message.
final
name String
The name of the image.
final
repliedMessage Message?
Message that is being replied to with the current message.
final
runtimeType Type
A representation of the runtime type of the object.
no setterinherited
size num
Size of the image in bytes.
final
uri String
The image source (either a remote URL or a local resource).
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 a partial image message 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