PlatformNetworkImage constructor

PlatformNetworkImage(
  1. dynamic imageUrl, {
  2. Key? key,
  3. double? height,
  4. double? width,
  5. Map<String, String>? httpHeaders,
  6. Widget placeholder(
    1. BuildContext context,
    2. String url
    )?,
  7. Widget errorWidget(
    1. BuildContext context,
    2. String url,
    3. Object? err
    )?,
  8. Alignment alignment = Alignment.center,
  9. bool useOldImageOnUrlChange = false,
  10. BoxFit? fit,
  11. 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);