shareToFacebookStory method

  1. @override
Future<String> shareToFacebookStory(
  1. String appId, {
  2. String? stickerImage,
  3. String? backgroundImage,
  4. String? backgroundVideo,
  5. String? backgroundTopColor,
  6. String? backgroundBottomColor,
  7. String? attributionURL,
})
override

Implementation

@override
Future<String> shareToFacebookStory(String appId,
    {String? stickerImage,
    String? backgroundImage,
    String? backgroundVideo,
    String? backgroundTopColor,
    String? backgroundBottomColor,
    String? attributionURL}) async {
  return ((await methodChannel.invokeMethod<String>(facebookStories, {
        "stickerImage": stickerImage,
        "backgroundImage":
            backgroundImage ?? (Platform.isAndroid ? backgroundVideo : null),
        "videoFile": backgroundVideo,
        "backgroundTopColor": backgroundTopColor,
        "backgroundBottomColor": backgroundBottomColor,
        "attributionURL": attributionURL,
        "appId": appId
      })) ??
      "");
}