GetImage constructor

const GetImage({
  1. Key? key,
  2. String? imagePath,
  3. double width = Siz.profileImageSize,
  4. double height = Siz.profileImageSize,
  5. BoxFit fit = BoxFit.cover,
  6. double? radius,
  7. bool isAssets = false,
  8. Color? imageColor,
  9. BorderRadius? borderRadius,
  10. Color? loadingColor,
  11. GestureTapCallback? onTap,
  12. BoxDecoration? backgroundDecoration,
  13. PageController? pageController,
  14. dynamic onPageChanged(
    1. int
    )?,
  15. PreferredSizeWidget? appBar,
  16. Duration imageLoadingDelay = const Duration(milliseconds: 100),
  17. Color loadingBgColor = Colors.transparent,
  18. Widget? errorWidget,
})

Implementation

const GetImage({super.key,
  this.imagePath,
  this.width = Siz.profileImageSize,
  this.height = Siz.profileImageSize,
  this.fit = BoxFit.cover,
  this.radius,
  this.isAssets = false,
  this.imageColor,
  this.borderRadius,
  this.loadingColor,
  this.onTap,
  this.backgroundDecoration,
  this.pageController,
  this.onPageChanged,
  this.appBar,
  this.imageLoadingDelay = const Duration(milliseconds: 100),
  this.loadingBgColor = Colors.transparent,
  this.errorWidget
});