MultiFormatImage.network constructor Null safety

MultiFormatImage.network(
  1. String url,
  2. {required ImageFormat format,
  3. double? width,
  4. double? height,
  5. BoxFit? fit,
  6. Color? color}
)

Implementation

factory MultiFormatImage.network(
  String url, {
  required ImageFormat format,
  double? width,
  double? height,
  BoxFit? fit,
  Color? color,
}) {
  return MultiFormatImage._(
    resource: url,
    format: format,
    width: width,
    height: height,
    fit: fit,
    color: color,
    resourceType: ResourceType.network,
  );
}