setBackgroundImage method

  1. @override
Future setBackgroundImage(
  1. String path, {
  2. bool fillHeight = false,
})
override

Implementation

@override
Future setBackgroundImage(String path, {bool fillHeight = false}) async {
  final pathPtr = path.toNativeUtf8(allocator: allocator).cast<Char>();
  await withVoidCallback((cb) {
    set_background_image_ffi(_viewer!, pathPtr, fillHeight, cb);
  });

  allocator.free(pathPtr);
}