sharePhotoToFacebookStory method

  1. @override
Future<SocialShareStatus> sharePhotoToFacebookStory({
  1. required String appID,
  2. required String filePath,
  3. required String backgroundTopColor,
  4. required String backgroundBottomColor,
})
override

Implementation

@override
Future<SocialShareStatus> sharePhotoToFacebookStory({
  required String appID,
  required String filePath,
  required String backgroundTopColor,
  required String backgroundBottomColor,
}) async {
  final result = await methodChannel.invokeMethod<String>(
    photoFacebookStory,
    {
      'filePath': filePath,
      'backgroundTopColor': backgroundTopColor,
      'backgroundBottomColor': backgroundBottomColor,
      'appID': appID,
    },
  );
  return SocialShareStatus.values.firstWhere((element) => element.name == result, orElse: () => SocialShareStatus.failure);
}