getImageNotFound method

Widget getImageNotFound()

Implementation

Widget getImageNotFound() {
  if (width == 0 || height == 0) {
    return AspectRatio(
      aspectRatio: 1,
      child: Image.asset("assets/images/image_not_found.png",
          fit: BoxFit.cover, package: package),
    );
  } else {
    return Image.asset("assets/images/image_not_found.png",
        width: width, height: height, fit: BoxFit.cover, package: package);
  }
}