ShapeDecorationMix class final

Mix-compatible representation of Flutter's ShapeDecoration with custom shape support.

Allows decoration with custom shape borders, color, gradient, image, and shadows with token support and merging capabilities.

Inheritance
Mixed-in types

Constructors

ShapeDecorationMix({ShapeBorderMix<ShapeBorder>? shape, Color? color, DecorationImageMix? image, GradientMix<Gradient>? gradient, List<BoxShadowMix>? shadows})
ShapeDecorationMix.create({Prop<ShapeBorder>? shape, Prop<Color>? color, Prop<DecorationImage>? image, Prop<Gradient>? gradient, Prop<List<BoxShadow>>? shadows})
const
ShapeDecorationMix.value(ShapeDecoration decoration)
Creates a ShapeDecorationMix from an existing ShapeDecoration.

Properties

$boxShadow → Prop<List<BoxShadow>>?
finalinherited
$color → Prop<Color>?
finalinherited
$gradient → Prop<Gradient>?
finalinherited
$image → Prop<DecorationImage>?
finalinherited
$shadows → Prop<List<BoxShadow>>?
no setter
$shape → Prop<ShapeBorder>?
final
defaultValue → ShapeDecoration
The default value to use when no explicit value is available.
no setteroverride
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 setteroverride
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 setteroverride
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

debugFillProperties(DiagnosticPropertiesBuilder properties) → void
Add additional properties associated with the node.
override
getDiff(Equatable other) → Map<String, String>
Returns a map of properties that differ between this object and another.
inherited
merge(covariant ShapeDecorationMix? other) → ShapeDecorationMix
Merges the properties of this ShapeDecorationMix with the properties of other.
override
noSuchMethod(Invocation invocation) → dynamic
Invoked when a nonexistent method or property is accessed.
inherited
resolve(BuildContext context) → ShapeDecoration
Resolves to ShapeDecoration using the provided BuildContext.
override
toDiagnosticsNode({String? name, DiagnosticsTreeStyle? style}) → DiagnosticsNode
Returns a debug representation of the object that is used by debugging tools and by DiagnosticsNode.toStringDeep.
inherited
toString({DiagnosticLevel minLevel = DiagnosticLevel.info}) → String
A string representation of this object.
inherited
toStringShort() → String
A brief description of this object, usually just the runtimeType and the hashCode.
inherited

Operators

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

Static Methods

maybeValue(ShapeDecoration? decoration) → ShapeDecorationMix?
Creates a ShapeDecorationMix from a nullable ShapeDecoration.
override