init method

void init({
  1. required String imageName,
  2. String? imagePath,
  3. String? imageUrl,
})

Implementation

void init({required String imageName, String? imagePath, String? imageUrl}) {
  this.imageName(imageName);
  this.imagePath(imagePath);
  if (imageUrl.toString().startsWith("http")) {
    this.imageUrl(imageUrl);
  } else {
    this.imageUrl(SessionManagement.getMediaEndPoint().checkNull() +
        imageUrl.toString());
  }
}