Future<ByteData?> loadAssetIfExists(String path) async { try { return await rootBundle.load(path); } catch (_) { return null; } }