DecorationMix<T extends Decoration> class sealed

Base class for decoration styling.

Supports color, gradient, image, and shadow properties.

Inheritance
Implementers
Annotations

Constructors

DecorationMix.value(Decoration decoration)
Creates from Decoration.
factory

Properties

$boxShadow → Prop<List<BoxShadow>>?
final
$color → Prop<Color>?
final
$gradient → Prop<Gradient>?
final
$image → Prop<DecorationImage>?
final
hashCode → int
Overrides the hash code getter to compute hash code based on properties.
no setterinherited
isMergeable → bool
True if mergeable with other types.
no setter
mergeKey → Object
The key used to identify compatible types for merging.
no setterinherited
props → List<Object?>
The properties based on which equality and hash code are computed.
no setterinherited
runtimeType → Type
A representation of the runtime type of the object.
no setterinherited
stringify → bool
Whether to use a detailed string representation of the object.
no setterinherited

Methods

getDiff(Equatable other) → Map<String, String>
Returns a map of properties that differ between this object and another.
inherited
merge(covariant DecorationMix<T>? other) → DecorationMix<T>
Merges with another decoration.
override
noSuchMethod(Invocation invocation) → dynamic
Invoked when a nonexistent method or property is accessed.
inherited
resolve(BuildContext context) → T
Resolves this to a concrete value using the provided context.
inherited
toString() → String
Overrides string representation for debugging and logging.
inherited

Operators

operator ==(Object other) → bool
Overrides the equality operator to compare based on the properties.
inherited

Static Methods

border(BoxBorderMix<BoxBorder> value) → BoxDecorationMix
Creates with border.
borderRadius(BorderRadiusGeometryMix<BorderRadiusGeometry> value) → BoxDecorationMix
Creates with border radius.
boxShadow(List<BoxShadowMix> value) → BoxDecorationMix
Creates with box shadows.
color(Color value) → BoxDecorationMix
Creates with color.
gradient(GradientMix<Gradient> value) → BoxDecorationMix
Creates with gradient.
image(DecorationImageMix value) → BoxDecorationMix
Creates with image.
maybeValue(Decoration? decoration) → DecorationMix<Decoration>?
Creates from nullable Decoration.
shape(BoxShape value) → BoxDecorationMix
Creates with shape.
shapeDecoration(ShapeDecorationMix value) → ShapeDecorationMix
Identity function for shape decoration.
tryMerge(BuildContext context, DecorationMix<Decoration>? a, DecorationMix<Decoration>? b) → DecorationMix<Decoration>?
Merges decoration instances.