startDecode method

  1. @override
BmpInfo? startDecode(
  1. Uint8List bytes
)
override

Start decoding the data as an animation sequence, but don't actually process the frames until they are requested with decodeFrame.

Implementation

@override
BmpInfo? startDecode(Uint8List bytes) {
  if (!isValidFile(bytes)) {
    return null;
  }
  _input = InputBuffer(bytes);
  return info = BmpInfo(_input);
}