getImageSize method

Future<Size?> getImageSize(
  1. ImageReference img
)

Implementation

Future<Size?> getImageSize(ImageReference img) async {
  final data = await getImageData(img);
  if (data == null) return null;
  return ImageSizeGetter.getSize(MemoryInput(data));
}