BoxSpec constructor

const BoxSpec({
  1. AlignmentGeometry? alignment,
  2. EdgeInsetsGeometry? padding,
  3. EdgeInsetsGeometry? margin,
  4. BoxConstraints? constraints,
  5. Decoration? decoration,
  6. Decoration? foregroundDecoration,
  7. Matrix4? transform,
  8. AlignmentGeometry? transformAlignment,
  9. Clip? clipBehavior,
  10. double? width,
  11. double? height,
  12. AnimatedData? animated,
})

Creates a BoxSpec with the given properties.

All parameters are required to ensure explicit configuration of each attribute.

Implementation

const BoxSpec({
  this.alignment,
  this.padding,
  this.margin,
  this.constraints,
  this.decoration,
  this.foregroundDecoration,
  this.transform,
  this.transformAlignment,
  this.clipBehavior,
  this.width,
  this.height,
  super.animated,
});