getImage method

dynamic getImage()

Implementation

getImage() {
  if (photoPath.isNotEmpty) {
    if (photoPath.contains('http') || photoPath.contains('https')) {
      return CustomImage(
          imageUrl: photoPath,
          width: width,
          height: height,
          boxShape: boxShape);
    }
  }
  return SizedBox(
    width: width,
    height: height,
    child: const CircleAvatar(
        radius: 40,
        backgroundColor: Colors.transparent,
        backgroundImage: AssetImage(ImageIconResources.logoUser)),
  );
}