DecoratorBox constructor
const
DecoratorBox({
- Key? key,
- required Widget child,
- Widget? header,
- Widget? extraPrefix,
- Widget? extraSuffix,
- Widget? prefix,
- Widget? suffix,
- CrossAxisAlignment crossAxisAlignment = CrossAxisAlignment.center,
- BorderType borderType = BorderType.none,
- Color? fillColor,
- BorderRadius? borderRadius,
- List<
BoxShadow> ? boxShadow, - Gradient? gradient,
- EdgeInsetsGeometry? margin,
- EdgeInsetsGeometry? padding,
- BorderSide borderSide = const BorderSide(),
- 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,
});