ImageNetwork constructor
const
ImageNetwork({
- Key? key,
- required String image,
- required double height,
- required double width,
- int duration = 1200,
- Curve curve = Curves.easeIn,
- bool onPointer = false,
- BoxFit fitAndroidIos = BoxFit.cover,
- BoxFitWeb fitWeb = BoxFitWeb.cover,
- BorderRadius borderRadius = BorderRadius.zero,
- Widget onLoading = const CircularProgressIndicator(),
- Widget onError = const Icon(Icons.error),
- bool debugPrint = false,
- Function? onTap,
- ImageProvider<
Object> ? imageCache, - 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);