IoSentryAttachment.fromFile constructor
IoSentryAttachment.fromFile(})
Creates an attachment from a given File.
Only available on dart:io
platforms.
Not available on web.
Implementation
IoSentryAttachment.fromFile(
File file, {
String? filename,
super.attachmentType,
super.contentType,
}) : super.fromLoader(
loader: () => file.readAsBytes(),
filename: filename ?? file.uri.pathSegments.last,
);