getImagePath method

String getImagePath()

Implementation

String getImagePath() {
  switch (type) {
    case EmptyPlaceholderType.list:
      return Assets.imagesListEmpty.path;
    case EmptyPlaceholderType.search:
      return Assets.imagesSearchEmpty.path;
    case EmptyPlaceholderType.custom:
      return imagePath ?? Assets.imagesListEmpty.path;
  }
}