isValidFile method

  1. @override
bool isValidFile(
  1. Uint8List bytes
)
override

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

Implementation

@override
bool isValidFile(Uint8List bytes) {
  _input = InputBuffer(bytes);
  _icoInfo = IcoInfo.read(_input!);
  return _icoInfo != null;
}