DecoratorBox constructor

const DecoratorBox({
  1. Key? key,
  2. required Widget child,
  3. Widget? header,
  4. Widget? footer,
  5. Widget? extraPrefix,
  6. Widget? extraSuffix,
  7. Widget? prefix,
  8. Widget? suffix,
  9. CrossAxisAlignment crossAxisAlignment = CrossAxisAlignment.center,
  10. BorderType borderType = BorderType.none,
  11. Color? fillColor,
  12. BorderRadius? borderRadius,
  13. List<BoxShadow>? boxShadow,
  14. Gradient? gradient,
  15. EdgeInsetsGeometry? margin,
  16. EdgeInsetsGeometry? padding,
  17. BorderSide borderSide = const BorderSide(),
  18. BoxConstraints? constraints,
})

Implementation

const DecoratorBox({
  super.key,
  required this.child,
  this.header,
  this.footer,
  this.extraPrefix,
  this.extraSuffix,
  this.prefix,
  this.suffix,
  this.crossAxisAlignment = CrossAxisAlignment.center,
  this.borderType = BorderType.none,
  this.fillColor,
  this.borderRadius,
  this.boxShadow,
  this.gradient,
  this.margin,
  this.padding,
  this.borderSide = const BorderSide(),
  this.constraints,
});