AttachmentBuilder class
Attachment File builder
Constructors
-
AttachmentBuilder(List<
int> content, {String? filename, String? description}) - AttachmentBuilder.base64(String content, {required String filename, String? description})
-
Create an attachment from a base64 string
factory
- AttachmentBuilder.file(String path, {String? description, String? overrideFilename})
-
Create an attachment from a path
factory
Properties
-
content
↔ List<
int> -
Content property of this.
getter/setter pair
- description ↔ String?
-
Description property of this.
getter/setter pair
- filename ↔ String?
-
Filename property of this.
getter/setter pair
- hashCode → int
-
The hash code for this object.
no setterinherited
- runtimeType → Type
-
A representation of the runtime type of the object.
no setterinherited
Methods
-
noSuchMethod(
Invocation invocation) → dynamic -
Invoked when a nonexistent method or property is accessed.
inherited
-
toFile(
int id) → MultipartFile -
Create a
MultipartFile
from the attachment -
toJson(
{int? id}) → Object - Serialize the attachment to JSON
-
toString(
) → String -
A string representation of this object.
inherited
Operators
-
operator ==(
Object other) → bool -
The equality operator.
inherited