encode method

  1. @override
Future<String> encode(
  1. Uint8List image,
  2. int componentX,
  3. int componentY
)
override

Implementation

@override
Future<String> encode(Uint8List image, int componentX, int componentY) async {
  final String blurHash =
      await methodChannel.invokeMethod('blurHashEncode', <String, dynamic>{
    "image": image,
    "componentX": componentX,
    "componentY": componentY,
  });
  return blurHash;
}