BsImage.network constructor

BsImage.network(
  1. String src, {
  2. Key? key,
  3. bool fluid = false,
  4. bool thumbnail = false,
  5. bool rounded = false,
  6. bool circle = false,
  7. AlignmentGeometry? alignment,
  8. double? width,
  9. double? height,
  10. BoxFit? fit,
  11. String? semanticLabel,
})

Creates a BsImage from a network URL.

Implementation

factory BsImage.network(
  String src, {
  Key? key,
  bool fluid = false,
  bool thumbnail = false,
  bool rounded = false,
  bool circle = false,
  AlignmentGeometry? alignment,
  double? width,
  double? height,
  BoxFit? fit,
  String? semanticLabel,
}) {
  return BsImage(
    key: key,
    image: NetworkImage(src),
    fluid: fluid,
    thumbnail: thumbnail,
    rounded: rounded,
    circle: circle,
    alignment: alignment,
    width: width,
    height: height,
    fit: fit,
    semanticLabel: semanticLabel,
  );
}