Attachment class
A file attached to a message.
- Annotations
Constructors
- Attachment({required String id, required String name, required int size, required String type, String? url})
-
Creates an attachment.
const
- Attachment.fromJson(Json j)
-
Parses the wire shape.
factory
Properties
- hashCode → int
-
The hash code for this object.
no setterinherited
- id → String
-
Upload id.
final
- isImage → bool
-
The attachment is an image.
no setter
- name → String
-
Original file name.
final
- runtimeType → Type
-
A representation of the runtime type of the object.
no setterinherited
- size → int
-
Size in bytes.
final
- type → String
-
MIME type.
final
- url → String?
-
Signed download URL (rotates; fetch the message again when it expires).
final
Methods
-
noSuchMethod(
Invocation invocation) → dynamic -
Invoked when a nonexistent method or property is accessed.
inherited
-
toJson(
) → Json - The wire shape.
-
toString(
) → String -
A string representation of this object.
inherited
Operators
-
operator ==(
Object other) → bool -
The equality operator.
inherited