HybridImage.network constructor
HybridImage.network(})
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,
);