NxBox constructor
const
NxBox({
- Key? key,
- Widget? child,
- double? width,
- double? height,
- EdgeInsetsGeometry? padding,
- EdgeInsetsGeometry? margin,
- Color? color = Colors.white,
- double? borderSize,
- double? borderRadius,
- Color? borderColor,
- List<
BoxShadow> ? boxShadow, - ImageProvider<
Object> ? image, - VoidCallback? onPressed,
- Gradient? gradient,
- bool isWrap = false,
Implementation
const NxBox({
Key? key,
this.child,
this.width,
this.height,
this.padding,
this.margin,
this.color = Colors.white,
this.borderSize,
this.borderRadius,
this.borderColor,
this.boxShadow,
this.image,
this.onPressed,
this.gradient,
this.isWrap = false
}) : super(key: key);