PlatformNetworkImage constructor
PlatformNetworkImage(
- dynamic imageUrl, {
- Key? key,
- double? height,
- double? width,
- Map<
String, String> ? httpHeaders, - Widget placeholder(
- BuildContext context,
- String url
- Widget errorWidget(
- BuildContext context,
- String url,
- Object? err
- Alignment alignment = Alignment.center,
- bool useOldImageOnUrlChange = false,
- BoxFit? fit,
- dynamic extraOptions,
Implementation
PlatformNetworkImage(dynamic imageUrl,
{Key? key,
this.height,
this.width,
this.httpHeaders,
this.placeholder,
this.errorWidget,
this.alignment = Alignment.center,
this.useOldImageOnUrlChange = false,
this.fit,
extraOptions})
: assert(imageUrl != null),
imageUrl = "$imageUrl",
super(key: key, extraOptions: extraOptions);