NIMImageAttachment class Null safety
Image message attachment
- Inheritance
-
- Object
- NIMMessageAttachment
- NIMFileAttachment
- NIMImageAttachment
- Annotations
-
- @JsonSerializable()
Constructors
- NIMImageAttachment({String? thumbPath, String? thumbUrl, int? width, int? height, String? path, 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
- displayName → String?
-
File display name
@JsonKey(name: 'name'), final, inherited
- expire → int?
-
Expiration date
@JsonKey(name: 'expire'), final, inherited
- extension → String?
-
File extension
@JsonKey(name: 'ext'), final, inherited
- 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, inherited
- hashCode → int
-
The hash code for this object.
read-only, inherited
- height → int?
-
Image height
@JsonKey(name: 'h'), final
- md5 → String?
-
MD5 value of the file content
@JsonKey(name: 'md5', includeIfNull: false), final, inherited
- nosScene → NIMNosScene
-
NOS token used for uploading files. The default value is NIMNosScenes.defaultIm.
@JsonKey(name: 'sen', defaultValue: NIMNosScenes.defaultIm), final, inherited
- path → String?
-
File path
@JsonKey(name: 'path', includeIfNull: false), final, inherited
- runtimeType → Type
-
A representation of the runtime type of the object.
read-only, inherited
- size → int?
-
File size
@JsonKey(name: 'size'), final, inherited
- thumbPath → String?
-
Local file path of a thumbnail
@JsonKey(includeIfNull: false), final
- thumbUrl → String?
-
Thumbnail URL
@JsonKey(includeIfNull: false), final
- url → String?
-
File download URL
@JsonKey(name: 'url', includeIfNull: false), final, inherited
- width → int?
-
Image width
@JsonKey(name: 'w'), 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