create method
Future<bool>
create({
- required String firstImagePath,
- required String secondImagePath,
- required int width,
- 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;
}
}