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(0x10, 0x14);
  final heightList = await input.getRange(0x14, 0x18);
  final width = convertRadix16ToInt(widthList);
  final height = convertRadix16ToInt(heightList);
  return Size(width, height);
}