decode method

  1. @override
Future<Uint8List?> decode(
  1. String blurHash,
  2. int width,
  3. int height, {
  4. double punch = 1.0,
  5. bool useCache = true,
})
override

Implementation

@override
Future<Uint8List?> decode(String blurHash, int width, int height,
    {double punch = 1.0, bool useCache = true}) async {
  final Uint8List pixels =
      await methodChannel.invokeMethod('blurHashDecode', <String, dynamic>{
    "blurHash": blurHash,
    "width": width,
    "height": height,
    "punch": punch,
    "useCache": useCache
  });
  return pixels;
}