CustomContainer constructor
const
CustomContainer({
- Key? key,
- Color? backgroundColor,
- Color? borderColor,
- double? borderRadius,
- double? width,
- double? height,
- Widget? child,
- EdgeInsets? margin,
- EdgeInsets? padding,
- double borderWidth = 1,
- VoidCallback? onPress,
- AlignmentGeometry? alignment,
Implementation
const CustomContainer({
super.key,
this.backgroundColor, // Default to null
this.borderColor, // Default to null
this.borderRadius,
this.width, // Default to null
this.height, // Default to null
this.child,
this.margin,
this.padding,
this.borderWidth = 1,
this.onPress,
this.alignment,
});