mergeToFile method

  1. @override
Future<File?> mergeToFile({
  1. required ImageMergeOption option,
})

Merge multiple images and get file.

Implementation

@override
Future<File?> mergeToFile({required ImageMergeOption option}) async {
  String? filePath = await NativeChannel.channel.invokeMethod('mergeToFile', {
    'option': option.toJson(),
  });
  return filePath != null ? File(filePath) : null;
}