file static method
Sends a file to other apps.
Implementation
static Future<void> file(
String title, String name, List<int> bytes, String mimeType,
{String text = ''}) async {
Map argsMap = <String, String>{
'title': title,
'name': name,
'mimeType': mimeType,
'text': text
};
final tempDir = await getTemporaryDirectory();
final file = await File('${tempDir.path}/$name').create();
await file.writeAsBytes(bytes);
_channel.invokeMethod('file', argsMap);
}