BackgroundConfig class

Configuration for widget background styling.

Constructors

BackgroundConfig({required String type, String? style, required String color, required double opacity, double? blurRadius})
Creates a new BackgroundConfig instance.
const
BackgroundConfig.fromJson(Map<String, dynamic> json)
Creates a BackgroundConfig from a JSON map.
factory

Properties

blurRadius double?
Blur radius for frosted backgrounds.
final
color String
Background color in hex format (e.g., '#FFFFFF').
final
hashCode int
The hash code for this object.
no setterinherited
opacity double
Background opacity (0.0 to 1.0).
final
runtimeType Type
A representation of the runtime type of the object.
no setterinherited
style String?
Background style (for frosted type): 'systemMaterial', 'ultraThinMaterial', etc.
final
type String
Background type: 'solid', 'frosted', or 'gradient'.
final

Methods

noSuchMethod(Invocation invocation) → dynamic
Invoked when a nonexistent method or property is accessed.
inherited
toJson() Map<String, dynamic>
Converts this BackgroundConfig to a JSON map.
toString() String
A string representation of this object.
inherited

Operators

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