NotificationAttachment class
Represents an attachment for a notification.
Attachments are primarily used on iOS to include images, audio, or video with notifications.
Constructors
- NotificationAttachment(String url, String fileName, {bool? showThumbnail = true})
-
Creates a NotificationAttachment with the given parameters.
const
Properties
- fileName → String
-
The file name to save the attachment as.
final
- hashCode → int
-
The hash code for this object.
no setterinherited
- runtimeType → Type
-
A representation of the runtime type of the object.
no setterinherited
- showThumbnail → bool?
-
Whether to show a thumbnail preview of the attachment.
final
- url → String
-
The URL to download the attachment from.
final
Methods
-
noSuchMethod(
Invocation invocation) → dynamic -
Invoked when a nonexistent method or property is accessed.
inherited
-
toString(
) → String -
A string representation of this object.
inherited
Operators
-
operator ==(
Object other) → bool -
The equality operator.
inherited