isValidFile method

  1. @override
bool isValidFile(
  1. List<int> bytes
)
override

A light-weight function to test if the given file is able to be decoded by this Decoder.

Implementation

@override
bool isValidFile(List<int> bytes) {
  _input = InputBuffer(bytes);
  _icoInfo = IcoInfo._read(_input!);
  return _icoInfo != null;
}