MultiImageLoader constructor

const MultiImageLoader({
  1. Key? key,
  2. required String image,
  3. BoxFit? fit = BoxFit.contain,
  4. double? height,
  5. required ImageType imageType,
  6. double? width,
  7. Uint8List? imageBytes,
  8. bool isDirectionRequired = true,
  9. VoidCallback? onTap,
  10. Widget? errorWidget,
})

Implementation

const MultiImageLoader({
  super.key,
  required this.image,
  this.fit = BoxFit.contain,
  this.height,
  required this.imageType,
  this.width,
  this.imageBytes,
  this.isDirectionRequired = true,
  this.onTap,
  this.errorWidget
}) : assert(imageType != ImageType.memory || imageBytes != null, 'imageBytes must be provided when imageType is ImageType.memory');