init method
Initializes this FileAttachment.
Implementation
Future<void> init() async {
if (_initialized) {
return;
}
_initialized = true;
if (!PlatformUtils.isWeb) {
await CacheWorker.instance.checkDownloaded(
filename: filename,
checksum: original.checksum,
size: original.size,
url: original.url,
);
}
}