NIMFileAttachment class Null safety

File message attachment

Inheritance
Implementers
Annotations
  • @JsonSerializable()

Constructors

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

Properties

displayName String?
File display name
@JsonKey(name: 'name'), final
expire int?
Expiration date
@JsonKey(name: 'expire'), final
extension String?
File extension
@JsonKey(name: 'ext'), final
forceUpload bool
Specify whether to upload forcibly if the same file already exists on the server. The default value is false.
@JsonKey(name: 'force_upload'), read / write
hashCode int
The hash code for this object.
read-only, inherited
md5 String?
MD5 value of the file content
@JsonKey(name: 'md5', includeIfNull: false), final
nosScene NIMNosScene
NOS token used for uploading files. The default value is NIMNosScenes.defaultIm.
@JsonKey(name: 'sen', defaultValue: NIMNosScenes.defaultIm), final
path String?
File path
@JsonKey(name: 'path', includeIfNull: false), final
runtimeType Type
A representation of the runtime type of the object.
read-only, inherited
size int?
File size
@JsonKey(name: 'size'), final
url String?
File download URL
@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