CardBackground constructor

const CardBackground({
  1. Key? key,
  2. required Gradient backgroundGradientColor,
  3. String? backgroundImage,
  4. String? backgroundNetworkImage,
  5. required Widget child,
  6. double? width,
  7. double? height,
  8. Glassmorphism? glassmorphismConfig,
  9. required double padding,
  10. BoxBorder? border,
})

Implementation

const CardBackground({
  Key? key,
  required this.backgroundGradientColor,
  this.backgroundImage,
  this.backgroundNetworkImage,
  required this.child,
  this.width,
  this.height,
  this.glassmorphismConfig,
  required this.padding,
  this.border,
})  : assert(
          (backgroundImage == null && backgroundNetworkImage == null) ||
              (backgroundImage == null && backgroundNetworkImage != null) ||
              (backgroundImage != null && backgroundNetworkImage == null),
          "You can't use network image & asset image at same time for card background"),
      super(key: key);