DimmingBarrier class
A modal barrier that dims the layers behind it.
- Inheritance
-
- Object
- Widget
- StatelessWidget
- DimmingBarrier
Constructors
- DimmingBarrier({Key? key, double scalar = 0.5, Color? barrierColor, Color? defaultForeground, Color? defaultBackground, TerminalColorTheme palette = TerminalColorTheme.legacyVga})
-
Creates a dimming barrier.
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
- key → Key?
-
The optional key for this widget.
finalinherited
- 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 by.
final
- wantsKeyReleaseEvents → bool
-
Whether this widget opts in to receiving KeyEventType.release events.
no setterinherited
Methods
-
build(
BuildContext context) → Widget -
Describes the part of the user interface represented by this widget.
override
-
createElement(
) → Element -
Creates an Element to manage this widget's location in the tree.
inherited
-
getIntrinsicHeight(
int width) → int -
Computes the intrinsic height of this widget under the given
widthconstraint.inherited -
getIntrinsicWidth(
int height) → int -
Computes the intrinsic width of this widget under the given
heightconstraint.inherited -
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