BackgroundCaptureConfig class
Configuration for background capture.
Constructors
- BackgroundCaptureConfig({int frameRate = 30, double pixelRatio = 1.0, bool excludeSelf = true, EdgeInsets capturePadding = EdgeInsets.zero})
-
const
Properties
- capturePadding → EdgeInsets
-
Extra padding around the window to capture.
Useful for effects that extend beyond the window bounds (like liquid glass circles).
final
- excludeSelf → bool
-
Whether to exclude the palette window itself from capture.
Default: true.
final
- frameRate → int
-
Target frame rate in frames per second.
Higher values provide smoother updates but use more resources.
Default: 30 fps. Maximum: 60 fps.
final
- hashCode → int
-
The hash code for this object.
no setterinherited
- pixelRatio → double
-
Pixel ratio relative to window size.
1.0 = native resolution, 0.5 = half resolution (better performance).
Default: 1.0.
final
- runtimeType → Type
-
A representation of the runtime type of the object.
no setterinherited
Methods
-
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