setBackground method
Set the current virtual background.
This preloads any necessary resources for the background.
Implementation
Future<void> setBackground(VirtualBackground background) async {
_currentBackground = background;
// Preload image if needed
if (background.type == BackgroundType.image) {
await _preloadBackgroundImage(background);
}
}