ThumbnailMedia constructor

const ThumbnailMedia({
  1. Key? key,
  2. required MediaFile media,
  3. BoxFit fit = BoxFit.cover,
  4. Widget onErrorBuilder(
    1. MediaFile media,
    2. BuildContext context
    )?,
  5. double radius = 0,
  6. bool highQuality = true,
  7. Color borderColor = Colors.transparent,
  8. double borderWidth = 0,
  9. double? width,
  10. double? height,
  11. Color? backgroundColor,
  12. bool noIcon = false,
})

Implementation

const ThumbnailMedia({
  super.key,
  required this.media,
  this.fit = BoxFit.cover,
  this.onErrorBuilder,
  this.radius = 0,
  this.highQuality = true,
  this.borderColor = Colors.transparent,
  this.borderWidth = 0,
  this.width,
  this.height,
  this.backgroundColor,
  this.noIcon = false,
});