NIMFileAttachment class Null safety
文件消息附件
- Inheritance
-
- Object
- NIMMessageAttachment
- NIMFileAttachment
- Implementers
- Annotations
-
- @JsonSerializable()
Constructors
- NIMFileAttachment({String? path, required int? size, String? md5, String? url, String? base64, String? displayName, String? extension, int? expire, NIMNosScene nosScene = NIMNosScenes.defaultIm, bool forceUpload = false})
-
NIMFileAttachment.fromMap(Map<
String, dynamic> map) -
factory
Properties
- base64 → String?
-
web 发送专用
@JsonKey(name: 'base64', includeIfNull: false), final
- displayName → String?
-
文件显示名
@JsonKey(name: 'name'), final
- expire → int?
-
过期时间
@JsonKey(name: 'expire'), final
- extension → String?
-
文件后缀名
@JsonKey(name: 'ext'), final
- forceUpload ↔ bool
-
如果服务器存在相同的附件文件,是否强制重新上传 , 默认false
@JsonKey(name: 'force_upload'), read / write
- hashCode → int
-
The hash code for this object.
read-only, inherited
- md5 → String?
-
文件内容的MD5
@JsonKey(name: 'md5', includeIfNull: false), final
- nosScene → NIMNosScene
-
上传文件时用的对token对应的场景,默认 NIMNosScenes.defaultIm
@JsonKey(name: 'sen', defaultValue: NIMNosScenes.defaultIm), final
- path → String?
-
文件路径
@JsonKey(name: 'path', includeIfNull: false), final
- runtimeType → Type
-
A representation of the runtime type of the object.
read-only, inherited
- size → int?
-
文件大小
@JsonKey(name: 'size'), final
- url → String?
-
文件下载地址
@JsonKey(name: 'url', includeIfNull: false), final
Methods
-
noSuchMethod(
Invocation invocation) → dynamic -
Invoked when a non-existent 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