getImageOptions static method Null safety

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

Implementation

static Future<ImageOptions> getImageOptions({
  required File file,
}) async {
  final result =
      await _channel.invokeMethod('getImageOptions', {'path': file.path});

  return ImageOptions(
    width: result['width'],
    height: result['height'],
  );
}