isValidFile method

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

Is the given file a valid WebP image?

Implementation

@override
bool isValidFile(List<int> bytes) {
  _input = InputBuffer(bytes);
  if (!_getHeader(_input!)) {
    return false;
  }
  return true;
}