addPlatformAttachment method
- PlatformFile platformFile
Constructs a NativeFile from the specified PlatformFile and adds it to the attachments.
Implementation
Future<void> addPlatformAttachment(PlatformFile platformFile) async {
NativeFile nativeFile = NativeFile.fromPlatformFile(platformFile);
await _addAttachment(nativeFile);
}