SubZeroCardMedia constructor

const SubZeroCardMedia({
  1. String? image,
  2. String? imageUrl,
  3. Widget? child,
  4. SubZeroCardMediaRatio aspectRatio = SubZeroCardMediaRatio.standard,
  5. BoxFit fit = BoxFit.cover,
  6. String? semanticLabel,
})

Implementation

const SubZeroCardMedia({
  this.image,
  this.imageUrl,
  this.child,
  this.aspectRatio = SubZeroCardMediaRatio.standard,
  this.fit = BoxFit.cover,
  this.semanticLabel,
}) : assert(
        image != null || imageUrl != null || child != null,
        'At least one of image, imageUrl, or child must be provided',
      );