ImageNetwork constructor

const ImageNetwork({
  1. Key? key,
  2. required String image,
  3. required double height,
  4. required double width,
  5. int duration = 1200,
  6. Curve curve = Curves.easeIn,
  7. bool onPointer = false,
  8. BoxFit fitAndroidIos = BoxFit.cover,
  9. BoxFitWeb fitWeb = BoxFitWeb.cover,
  10. BorderRadius borderRadius = BorderRadius.zero,
  11. Widget onLoading = const CircularProgressIndicator(),
  12. Widget onError = const Icon(Icons.error),
  13. bool debugPrint = false,
  14. Function? onTap,
  15. ImageProvider<Object>? imageCache,
  16. Color? backgroundColor,
})

constructor

Implementation

const ImageNetwork({
  Key? key,
  required this.image,
  required this.height,
  required this.width,
  this.duration = 1200,
  this.curve = Curves.easeIn,
  this.onPointer = false,
  this.fitAndroidIos = BoxFit.cover,
  this.fitWeb = BoxFitWeb.cover,
  this.borderRadius = BorderRadius.zero,
  this.onLoading = const CircularProgressIndicator(),
  this.onError = const Icon(Icons.error),
  this.debugPrint = false,
  this.onTap,
  this.imageCache,
  this.backgroundColor,
}) : super(key: key);