BoxSpecAttribute class
Represents the attributes of a BoxSpec.
This class encapsulates properties defining the layout and appearance of a BoxSpec.
Use this class to configure the attributes of a BoxSpec and pass it to the BoxSpec constructor.
- Inheritance
-
- Object
- Attribute
- StyledAttribute
- SpecAttribute<
BoxSpec> - BoxSpecAttribute
Constructors
-
BoxSpecAttribute({AlignmentGeometry? alignment, SpacingDto? padding, SpacingDto? margin, BoxConstraintsDto? constraints, DecorationDto<
Decoration> ? decoration, DecorationDto<Decoration> ? foregroundDecoration, Matrix4? transform, AlignmentGeometry? transformAlignment, Clip? clipBehavior, double? width, double? height, AnimatedDataDto? animated}) -
const
Properties
- alignment → AlignmentGeometry?
-
Aligns the child within the box.
final
- animated → AnimatedDataDto?
-
finalinherited
- clipBehavior → Clip?
-
Defines the clip behavior for the box when BoxConstraints has a negative
minimum extent.
final
- constraints → BoxConstraintsDto?
-
Applies additional constraints to the child.
final
-
decoration
→ DecorationDto<
Decoration> ? -
Paints a decoration behind the child.
final
-
foregroundDecoration
→ DecorationDto<
Decoration> ? -
Paints a decoration in front of the child.
final
- hashCode → int
-
The hash code for this object.
no setterinherited
- height → double?
-
Specifies the height of the box.
final
- margin → SpacingDto?
-
Adds empty space around the box.
final
- mergeKey → Object
-
no setterinherited
- padding → SpacingDto?
-
Adds empty space inside the box.
final
-
props
→ List<
Object?> -
The list of properties that constitute the state of this BoxSpecAttribute.
no setter
- runtimeType → Type
-
A representation of the runtime type of the object.
no setterinherited
- stringify → bool
-
no setterinherited
- transform → Matrix4?
-
Applies a transformation matrix before painting the box.
final
- transformAlignment → AlignmentGeometry?
-
Aligns the origin of the coordinate system for the transform.
final
- width → double?
-
Specifies the width of the box.
final
Methods
-
getDiff(
EqualityMixin other) → Map< String, String> -
inherited
-
merge(
covariant BoxSpecAttribute? other) → BoxSpecAttribute -
Merges this object with
other, returning a new object of typeT.override -
noSuchMethod(
Invocation invocation) → dynamic -
Invoked when a nonexistent method or property is accessed.
inherited
-
resolve(
MixData mix) → BoxSpec -
override
-
toString(
) → String -
A string representation of this object.
inherited
Operators
-
operator ==(
Object other) → bool -
The equality operator.
inherited