VirtualBackground class

Virtual background configuration.

Constructors

VirtualBackground.new({required String id, required BackgroundType type, required String name, String? thumbnailUrl, String? imageUrl, Uint8List? imageBytes, Color? color, double blurIntensity = 0.5, String? videoUrl, bool isPreset = false, bool isSelected = false})
const
VirtualBackground.blur({double intensity = 0.5, String name = 'Blur'})
Factory for creating a blur background
factory
VirtualBackground.color(Color color, {String? name})
Factory for creating a color background
factory
VirtualBackground.fromMap(Map<String, dynamic> map)
factory
VirtualBackground.image({required String id, required String name, String? imageUrl, Uint8List? imageBytes, String? thumbnailUrl, bool isPreset = false})
Factory for creating an image background
factory
VirtualBackground.none()
Factory for creating a "None" (disabled) background
factory

Properties

blurIntensity → double
Blur intensity (for blur type, 0.0 to 1.0)
final
color → Color?
Color value (for color type)
final
hashCode → int
The hash code for this object.
no setterinherited
id → String
Unique identifier for the background
final
imageBytes → Uint8List?
Image bytes (for local images)
final
imageUrl → String?
Full image URL (for image type)
final
isPreset → bool
Whether this is a default/preset background
final
isSelected → bool
Whether this background is currently selected
final
name → String
Display name
final
runtimeType → Type
A representation of the runtime type of the object.
no setterinherited
thumbnailUrl → String?
Thumbnail for UI display
final
type → BackgroundType
Type of background
final
videoUrl → String?
Video URL (for video type)
final

Methods

copyWith({String? id, BackgroundType? type, String? name, String? thumbnailUrl, String? imageUrl, Uint8List? imageBytes, Color? color, double? blurIntensity, String? videoUrl, bool? isPreset, bool? isSelected}) → VirtualBackground
getImageBytes() → Future<Uint8List?>
Get image bytes for this background.
noSuchMethod(Invocation invocation) → dynamic
Invoked when a nonexistent method or property is accessed.
inherited
toMap() → Map<String, dynamic>
toString() → String
A string representation of this object.
inherited

Operators

operator ==(Object other) → bool
The equality operator.
inherited