NxBox constructor

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