AttachmentFile class
Contains information about an attachment file.
- Annotations
-
- @JsonSerializable()
Constructors
- AttachmentFile({String? path, String? name, Uint8List? bytes, int? size})
- Builds an AttachmentFile.
-
AttachmentFile.fromJson(Map<
String, dynamic> json) -
Create a new instance from a JSON object
factory
Properties
- bytes → Uint8List?
-
Byte data for this file.
final
- extension → String?
-
File extension for this file.
no setter
- hashCode → int
-
The hash code for this object.
no setterinherited
- name → String?
-
File name including its extension.
final
- path → String?
-
The absolute path for a cached copy of this file.
final
-
props
→ List<
Object?> -
The list of properties that will be used to determine whether
two instances are equal.
no setter
- runtimeType → Type
-
A representation of the runtime type of the object.
no setterinherited
- size → int?
-
The file size in bytes.
final
- stringify → bool?
-
If set to
true
, the toString method will be overridden to output this instance's props.no setterinherited
Methods
-
noSuchMethod(
Invocation invocation) → dynamic -
Invoked when a nonexistent method or property is accessed.
inherited
-
toJson(
) → Map< String, dynamic> - Serialize to json
-
toMultipartFile(
) → Future< MultipartFile> -
Converts this into a
MultipartFile
-
toString(
) → String -
A string representation of this object.
inherited
Operators
-
operator ==(
Object other) → bool -
The equality operator.
inherited