convert method

  1. @override
Future<Uint8List?> convert(
  1. Uint8List imgBytes,
  2. int width,
  3. int height,
  4. int quality,
)
override

Implementation

@override
Future<Uint8List?> convert(
    Uint8List imgBytes,
    int width,
    int height,
    int quality
  ) async {
  if(Platform.isIOS) {
    throw UnimplementedError('convert(*) has not been implemented for iOS');
  }
  final result = await methodChannel.invokeMethod('convert', {
    "bytes": imgBytes,
    "width": width,
    "height": height,
    "quality": quality
  });
  return result;
}