NxBox constructor

const NxBox({
  1. Key? key,
  2. Widget? child,
  3. double? width,
  4. double? height,
  5. double? padding,
  6. double? margin,
  7. Color? color = Colors.white,
  8. double? borderRadius,
  9. Color? borderColor,
  10. List<BoxShadow>? boxShadow,
  11. ImageProvider<Object>? image,
  12. VoidCallback? onPressed,
  13. Gradient? gradient,
})

Implementation

const NxBox({
  Key? key,
  this.child,
  this.width,
  this.height,
  this.padding,
  this.margin,
  this.color = Colors.white,
  this.borderRadius,
  this.borderColor,
  this.boxShadow,
  this.image,
  this.onPressed,
  this.gradient
}) : super(key: key);