getImageOptions static method

Future<ImageOptions> getImageOptions({
  1. File? file,
})

Implementation

static Future<ImageOptions> getImageOptions({File? file}) async {
  assert(file != null);

  final result =
      await _channel.invokeMethod('getImageOptions', {'path': file?.path});
  return ImageOptions(
    width: result['width'],
    height: result['height'],
  );
}