share static method

Future<void> share({
  1. required String clintID,
  2. required List<String> files,
})

share multi files videos or images

Implementation

static Future<void> share(
    {required String clintID, required List<String> files}) async {
  try {
    await platform.invokeMethod('launchSnapchatPreviewWithMultipleFiles', {
      'filePaths': files,
      'clientId': clintID,
    });
  } on PlatformException catch (e, s) {
    log("Failed with error : '${e.message}'. \n $s");
    throw (e, s);
  } catch (e, s) {
    log("Failed with error : $e \n $s");
    throw (e, s);
  }
}