NIMImageAttachment class

图片消息附件

Inheritance
Annotations

Constructors

NIMImageAttachment({String? thumbPath, String? thumbUrl, int? width, int? height, String? path, String? base64, required int? size, String? md5, String? url, String? displayName, String? extension, int? expire, NIMNosScene nosScene = NIMNosScenes.defaultIm, bool forceUpload = false})
NIMImageAttachment.fromMap(Map<String, dynamic> map)
factory

Properties

base64 String?
web 发送专用
finalinherited
displayName String?
文件显示名
finalinherited
expire int?
过期时间
finalinherited
extension String?
文件后缀名
finalinherited
forceUpload bool
如果服务器存在相同的附件文件,是否强制重新上传 , 默认false
getter/setter pairinherited
hashCode int
The hash code for this object.
no setterinherited
height int?
图片高度
final
md5 String?
文件内容的MD5
finalinherited
nosScene NIMNosScene
上传文件时用的对token对应的场景,默认 NIMNosScenes.defaultIm
finalinherited
path String?
文件路径
finalinherited
runtimeType Type
A representation of the runtime type of the object.
no setterinherited
size int?
文件大小
finalinherited
thumbPath String?
缩略本地路径
final
thumbUrl String?
缩略远程路径
final
url String?
文件下载地址
finalinherited
width int?
图片宽度
final

Methods

noSuchMethod(Invocation invocation) → dynamic
Invoked when a nonexistent method or property is accessed.
inherited
toMap() Map<String, dynamic>
override
toString() String
A string representation of this object.
inherited

Operators

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