PhotoProvider constructor

const PhotoProvider({
  1. Key? key,
  2. required MediaFile media,
  3. Widget onFailBuilder(
    1. BuildContext context
    )?,
  4. BoxFit fit = BoxFit.contain,
  5. Color? backgroundColor,
  6. double? width,
  7. double? height,
})

Implementation

const PhotoProvider({
  super.key,
  required this.media,
  this.onFailBuilder,
  this.fit = BoxFit.contain,
  this.backgroundColor,
  this.width,
  this.height,
});