NetImage constructor
const
NetImage(
- String? imageUrl, {
- String? placeholder,
- BoxFit fit = BoxFit.cover,
- BoxFit? placeholderFit,
- double? width,
- double? height,
- Alignment alignment = Alignment.center,
- ImageRepeat repeat = ImageRepeat.noRepeat,
- bool matchTextDirection = false,
- Map<
String, String> ? httpHeaders, - Color? color,
- double borderRadius = 0,
- Key? key,
Implementation
const NetImage(
this.imageUrl, {
this.placeholder,
this.fit = BoxFit.cover,
this.placeholderFit,
this.width,
this.height,
this.alignment = Alignment.center,
this.repeat = ImageRepeat.noRepeat,
this.matchTextDirection = false,
this.httpHeaders,
this.color,
this.borderRadius = 0,
Key? key,
}) : super(key: key);