import 'package:flutter/services.dart'; class Share { static Future shareItems( List fileUris, List mimeTypes) => _channel.invokeMethod("shareItems", { "fileUris": fileUris, "mimeTypes": mimeTypes, }); static Future shareText( String text, String? mimeType) => _channel.invokeMethod("shareText", { "text": text, "mimeType": mimeType, }); static const _channel = MethodChannel("com.nkming.nc_photos/share"); }