setBackgroundImage method
Implementation
@override
Future setBackgroundImage(String path, {bool fillHeight = false}) async {
final imageData = await FilamentApp.instance!.loadResource(path);
await getBackgroundImage();
bool isKtx = path.endsWith(".ktx");
if (isKtx) {
final bundle = await FFIKtx1Bundle.create(imageData);
await _backgroundImage!.setImageFromKtxBundle(bundle);
} else {
await _backgroundImage!.setImage(imageData);
}
return (_backgroundImage!.width!, _backgroundImage!.height!);
}