sharePhotosToFacebookFeed method

  1. @override
Future<SocialShareStatus> sharePhotosToFacebookFeed({
  1. required String hashtag,
  2. required List<String> filePaths,
})
override

Implementation

@override
Future<SocialShareStatus> sharePhotosToFacebookFeed({required String hashtag, required List<String> filePaths}) async {
  final result = await methodChannel.invokeMethod<String>(
    photosFacebookFeed,
    {
      'filePaths': filePaths,
      'hashtag': hashtag,
    },
  );
  return SocialShareStatus.values.firstWhere((element) => element.name == result, orElse: () => SocialShareStatus.failure);
}