addAttachment method
Adds an attachment to the notification.
Attachments are only supported on iOS.
Implementation
LocalNotification addAttachment(
String url,
String fileName, {
bool? showThumbnail,
}) {
_attachments.add(
NotificationAttachment(url, fileName, showThumbnail: showThumbnail),
);
return this;
}