decodeBlurHash function

  1. @Deprecated('Use [BlurHash.decode] instead.')
Uint8List decodeBlurHash(
  1. String blurHash,
  2. int width,
  3. int height, {
  4. double punch = 1.0,
})

Deprecated. Please use BlurHash.decode and BlurHash.toImage instead. Decode a BlurHash to raw pixels in RGBA32 format

Implementation

@Deprecated('Use [BlurHash.decode] instead.')
Uint8List decodeBlurHash(
  String blurHash,
  int width,
  int height, {
  double punch = 1.0,
}) {
  final hash = BlurHash.decode(blurHash, punch: punch);
  return hash.toImage(width, height).getBytes();
}