ImageView constructor

const ImageView({
  1. Key? key,
  2. VoidCallback? onPressed,
  3. required String url,
  4. double? size,
  5. double? width = double.infinity,
  6. double? height = double.infinity,
  7. String? placeholder,
  8. bool showPlaceholder = true,
  9. BoxFit fit = BoxFit.cover,
  10. BoxFit placeholderFit = BoxFit.cover,
  11. bool isEncrypt = true,
})

Implementation

const ImageView({
  Key? key,
  this.onPressed,
  required this.url,
  this.size,
  this.width = double.infinity,
  this.height = double.infinity,
  this.placeholder,
  this.showPlaceholder = true,
  this.fit = BoxFit.cover,
  this.placeholderFit = BoxFit.cover,
  this.isEncrypt = true,
}) : super(key: key);