DimmerEffect class final
Element for EffectWidget that absorbs pointer events. A terminal effect that dims the colors of all cells in its bounds.
- Inheritance
-
- Object
- TerminalEffect
- DimmerEffect
Constructors
- DimmerEffect({double scalar = 0.5, Color? barrierColor, Color? defaultForeground, Color? defaultBackground, TerminalColorTheme palette = TerminalColorTheme.legacyVga})
-
Creates a dimmer effect.
const
Properties
- barrierColor → Color?
-
Optional backdrop color to blend toward instead of
#000000.final - defaultBackground → Color?
-
Optional fallback background used when dimming default (
bg == 0) cells.final - defaultForeground → Color?
-
Optional fallback foreground used when dimming default (
fg == 0) cells.final - hashCode → int
-
The hash code for this object.
no setterinherited
- palette → TerminalColorTheme
-
Palette used when resolving
Color.ansiindices before dimming.final - runtimeType → Type
-
A representation of the runtime type of the object.
no setterinherited
- scalar → double
-
The scalar to dim colors by.
final
Methods
-
applyEffect(
Buffer target, Rect bounds) → void -
Applies the effect directly to the
targetbuffer withinbounds.override -
noSuchMethod(
Invocation invocation) → dynamic -
Invoked when a nonexistent method or property is accessed.
inherited
-
toString(
) → String -
A string representation of this object.
inherited
Operators
-
operator ==(
Object other) → bool -
The equality operator.
inherited