addAttachment static method
addAttachment
Attaches a file to the bug report
Params
name
The file name
file
The file to attach to the bug report
Available Platforms
Android, iOS
Implementation
static Future<void> addAttachment({
required String base64file,
required String fileName,
}) async {
if (kIsWeb || (!io.Platform.isAndroid && !io.Platform.isIOS)) {
debugPrint('addAttachment is not available for current operating system');
return;
}
await _channel.invokeMethod(
'addAttachment',
{
'base64file': base64file,
'fileName': fileName,
},
);
}