convert method

  1. @override
Future<String?> convert(
  1. String path, {
  2. String? output,
  3. String? format,
})
override

Implementation

@override
Future<String?> convert(String path, {
  String? output,
  String? format,
}) async {
  if (output == null && format == null) {
    throw ArgumentError('Please provide output path or format for conversion.','output');
  }
  final result = await methodChannel
      .invokeMethod<String>('convert', {'path': path, 'output': output, 'format': format});
  return result;
}