toBlurhash method

String toBlurhash(
  1. int xComponents,
  2. int yComponents
)

Implementation

String toBlurhash(int xComponents, int yComponents) {
  final ptr = blurHashForImage(_inst, xComponents, yComponents);
  try {
    return ptr.toDartString();
  } finally {
    malloc.free(ptr);
  }
}