encode method
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;
}