getSizeAsync method

  1. @override
Future<Size> getSizeAsync(
  1. AsyncImageInput input
)
override

Returns the size of the input.

Implementation

@override
Future<Size> getSizeAsync(AsyncImageInput input) async {
  final widthList = await input.getRange(0x12, 0x16);
  final heightList = await input.getRange(0x16, 0x1a);

  final width = convertRadix16ToInt(widthList, reverse: true);
  final height = convertRadix16ToInt(heightList, reverse: true);
  return Size(width, height);
}