BoxDef constructor

const BoxDef({
  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,
})

Implementation

const BoxDef({
  /// Aligns the child within the box.
  AlignmentGeometry? alignment,

  /// Adds empty space inside the box.
  EdgeInsetsGeometry? padding,

  /// Adds empty space around the box.
  EdgeInsetsGeometry? margin,

  /// Applies additional constraints to the child.
  BoxConstraints? constraints,

  /// Paints a decoration behind the child.
  Decoration? decoration,

  /// Paints a decoration in front of the child.
  Decoration? foregroundDecoration,

  /// Applies a transformation matrix before painting the box.
  Matrix4? transform,

  /// Aligns the origin of the coordinate system for the [transform].
  AlignmentGeometry? transformAlignment,

  /// Defines the clip behavior for the box when [BoxConstraints] has a negative
  /// minimum extent.
  Clip? clipBehavior,

  /// Specifies the width of the box.
  double? width,

  /// Specifies the height of the box.
  double? height,
});