create method

  1. @override
Future<bool> create({
  1. required String firstImagePath,
  2. required String secondImagePath,
  3. required int width,
  4. required int height,
})
override

Implementation

@override
Future<bool> create(
    {required String firstImagePath,
      required String secondImagePath,
      required int width,
      required int height}) async {
  String movPath = await methodChannel.invokeMethod("image_to_mov",
      [secondImagePath, width.toString(), height.toString()]);
  String result = await methodChannel
      .invokeMethod("create_live_photo", [firstImagePath, movPath]);
  if(result == 'success'){
    return true;
  }else{
    return false;
  }
}