shareLinkToFacebookFeed method

  1. @override
Future<SocialShareStatus> shareLinkToFacebookFeed({
  1. required String link,
  2. required String hashtag,
})
override

Implementation

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