addFileAttachmentWithURL static method

Future<void> addFileAttachmentWithURL(
  1. String filePath,
  2. String fileName
)

Add file to be attached to the bug report. filePath of the file fileName of the file

Implementation

static Future<void> addFileAttachmentWithURL(
    String filePath, String fileName) async {
  if (Platform.isIOS) {
    final List<dynamic> params = <dynamic>[filePath];
    await _channel.invokeMethod<Object>('addFileAttachmentWithURL:', params);
  } else {
    final List<dynamic> params = <dynamic>[filePath, fileName];
    await _channel.invokeMethod<Object>('addFileAttachmentWithURL:', params);
  }
}