HybridImage.network constructor

HybridImage.network(
  1. String imageUrl, {
  2. Key? key,
  3. Map<String, String>? headers,
  4. double? width,
  5. double? height,
  6. BoxFit fit = BoxFit.contain,
  7. AlignmentGeometry alignment = Alignment.center,
})

Factory for HybridImage that returns a widget with a network image for both svg and other image types. imageUrl is the url of the image and is required.

Implementation

factory HybridImage.network(
  String imageUrl, {
  Key? key,
  Map<String, String>? headers,
  double? width,
  double? height,
  BoxFit fit = BoxFit.contain,
  AlignmentGeometry alignment = Alignment.center,
}) =>
    HybridImage._(
      key: key,
      type: HybridImageType.network,
      headers: headers,
      width: width,
      height: height,
      fit: fit,
      alignment: alignment,
      imageUrl: imageUrl,
    );