Untitled

mail@pastecode.io avatar
unknown
plain_text
7 months ago
20 kB
2
Indexable
Never
  String? getEbay(HomeNotifier homeNotifier, bool isCatalog) {
    if (isCatalog) {
      if (homeNotifier.itemResponse?.catlog?.ebay != null) {
        return homeNotifier.itemResponse?.catlog?.ebay.toString();
      } else {
        return null;
      }
    } else {
      if (homeNotifier.itemDetailsEntity?.catalog?.ebay != null) {
        return homeNotifier.itemDetailsEntity?.catalog?.ebay.toString();
      } else {
        return null;
      }
    }
  }

  String? getAuctionHouse(HomeNotifier homeNotifier, bool isCatalog) {
    if (isCatalog) {
      if (homeNotifier.itemResponse?.catlog?.auctionHouse != null) {
        return homeNotifier.itemResponse?.catlog?.auctionHouse.toString();
      } else {
        return null;
      }
    } else {
      if (homeNotifier.itemDetailsEntity?.catalog?.auctionHouse != null) {
        return homeNotifier.itemDetailsEntity?.catalog?.auctionHouse.toString();
      } else {
        return null;
      }
    }
  }

  String? getSubgroup(HomeNotifier homeNotifier, bool isCatalog) {
    if (isCatalog) {
      if (homeNotifier.itemResponse?.catlog?.subgroup != null) {
        return homeNotifier.itemResponse?.catlog?.subgroup.toString();
      } else {
        return null;
      }
    } else {
      if (homeNotifier.itemDetailsEntity?.catalog?.subgroup != null) {
        return homeNotifier.itemDetailsEntity?.catalog?.subgroup.toString();
      } else {
        return null;
      }
    }
  }

  String? getTokenTopic(HomeNotifier homeNotifier, bool isCatalog) {
    if (isCatalog) {
      if (homeNotifier.itemResponse?.catlog?.tokenTopic != null) {
        return homeNotifier.itemResponse?.catlog?.tokenTopic.toString();
      } else {
        return null;
      }
    } else {
      if (homeNotifier.itemDetailsEntity?.catalog?.tokenTopic != null) {
        return homeNotifier.itemDetailsEntity?.catalog?.tokenTopic.toString();
      } else {
        return null;
      }
    }
  }

  String? getDecadeSubtitle(HomeNotifier homeNotifier, bool isCatalog) {
    if (isCatalog) {
      if (homeNotifier.itemResponse?.catlog?.decadeSubtitle != null) {
        return homeNotifier.itemResponse?.catlog?.decadeSubtitle.toString();
      } else {
        return null;
      }
    } else {
      if (homeNotifier.itemDetailsEntity?.catalog?.decadeSubtitle != null) {
        return homeNotifier.itemDetailsEntity?.catalog?.decadeSubtitle
            .toString();
      } else {
        return null;
      }
    }
  }

  String? getDecade(HomeNotifier homeNotifier, bool isCatalog) {
    if (isCatalog) {
      if (homeNotifier.itemResponse?.catlog?.decade != null) {
        return homeNotifier.itemResponse?.catlog?.decade.toString();
      } else {
        return null;
      }
    } else {
      if (homeNotifier.itemDetailsEntity?.catalog?.decade != null) {
        return homeNotifier.itemDetailsEntity?.catalog?.decade.toString();
      } else {
        return null;
      }
    }
  }

  String? getMintageRemarks(HomeNotifier homeNotifier, bool isCatalog) {
    if (isCatalog) {
      if (homeNotifier.itemResponse?.catlog?.mintageRemarks != null) {
        return homeNotifier.itemResponse?.catlog?.mintageRemarks.toString();
      } else {
        return null;
      }
    } else {
      if (homeNotifier.itemDetailsEntity?.catalog?.mintageRemarks != null) {
        return homeNotifier.itemDetailsEntity?.catalog?.mintageRemarks
            .toString();
      } else {
        return null;
      }
    }
  }

  String? getMintMark(HomeNotifier homeNotifier, bool isCatalog) {
    if (isCatalog) {
      if (homeNotifier.itemResponse?.catlog?.mintMark != null) {
        return homeNotifier.itemResponse?.catlog?.mintMark.toString();
      } else {
        return null;
      }
    } else {
      if (homeNotifier.itemDetailsEntity?.catalog?.mintMark != null) {
        return homeNotifier.itemDetailsEntity?.catalog?.mintMark.toString();
      } else {
        return null;
      }
    }
  }

  String? getDesign(HomeNotifier homeNotifier, bool isCatalog) {
    if (isCatalog) {
      if (homeNotifier.itemResponse?.catlog?.design != null) {
        return homeNotifier.itemResponse?.catlog?.design.toString();
      } else {
        return null;
      }
    } else {
      if (homeNotifier.itemDetailsEntity?.catalog?.design != null) {
        return homeNotifier.itemDetailsEntity?.catalog?.design.toString();
      } else {
        return null;
      }
    }
  }

  String? getFineness(HomeNotifier homeNotifier, bool isCatalog) {
    if (isCatalog) {
      if (homeNotifier.itemResponse?.catlog?.fineness != null) {
        return homeNotifier.itemResponse?.catlog?.fineness.toString();
      } else {
        return null;
      }
    } else {
      if (homeNotifier.itemDetailsEntity?.catalog?.fineness != null) {
        return homeNotifier.itemDetailsEntity?.catalog?.fineness.toString();
      } else {
        return null;
      }
    }
  }

  String? getThicknessRemarks(HomeNotifier homeNotifier, bool isCatalog) {
    if (isCatalog) {
      if (homeNotifier.itemResponse?.catlog?.ThicknessRemarks != null) {
        return homeNotifier.itemResponse?.catlog?.ThicknessRemarks.toString();
      } else {
        return null;
      }
    } else {
      if (homeNotifier.itemDetailsEntity?.catalog?.ThicknessRemarks != null) {
        return homeNotifier.itemDetailsEntity?.catalog?.ThicknessRemarks
            .toString();
      } else {
        return null;
      }
    }
  }

  String? getWatermark(HomeNotifier homeNotifier, bool isCatalog) {
    if (isCatalog) {
      if (homeNotifier.itemResponse?.catlog?.watermark != null) {
        return homeNotifier.itemResponse?.catlog?.watermark.toString();
      } else {
        return null;
      }
    } else {
      if (homeNotifier.itemDetailsEntity?.catalog?.watermark != null) {
        return homeNotifier.itemDetailsEntity?.catalog?.watermark.toString();
      } else {
        return null;
      }
    }
  }

  String? getHeight(HomeNotifier homeNotifier, bool isCatalog) {
    if (isCatalog) {
      if (homeNotifier.itemResponse?.catlog?.height != null) {
        return homeNotifier.itemResponse?.catlog?.height.toString();
      } else {
        return null;
      }
    } else {
      if (homeNotifier.itemDetailsEntity?.catalog?.height != null) {
        return homeNotifier.itemDetailsEntity?.catalog?.height.toString();
      } else {
        return null;
      }
    }
  }

  String? getWidth(HomeNotifier homeNotifier, bool isCatalog) {
    if (isCatalog) {
      if (homeNotifier.itemResponse?.catlog?.width != null) {
        return homeNotifier.itemResponse?.catlog?.width.toString();
      } else {
        return null;
      }
    } else {
      if (homeNotifier.itemDetailsEntity?.catalog?.width != null) {
        return homeNotifier.itemDetailsEntity?.catalog?.width.toString();
      } else {
        return null;
      }
    }
  }

  String? getLocalCalendarRemarks(HomeNotifier homeNotifier, bool isCatalog) {
    if (isCatalog) {
      if (homeNotifier.itemResponse?.catlog?.localCalendarRemarks != null) {
        return homeNotifier.itemResponse?.catlog?.localCalendarRemarks
            .toString();
      } else {
        return null;
      }
    } else {
      if (homeNotifier.itemDetailsEntity?.catalog?.localCalendarRemarks !=
          null) {
        return homeNotifier.itemDetailsEntity?.catalog?.localCalendarRemarks
            .toString();
      } else {
        return null;
      }
    }
  }

  String? getLocalCalendarYear(HomeNotifier homeNotifier, bool isCatalog) {
    if (isCatalog) {
      if (homeNotifier.itemResponse?.catlog?.localCalendarYear != null) {
        return homeNotifier.itemResponse?.catlog?.localCalendarYear.toString();
      } else {
        return null;
      }
    } else {
      if (homeNotifier.itemDetailsEntity?.catalog?.localCalendarYear != null) {
        return homeNotifier.itemDetailsEntity?.catalog?.localCalendarYear
            .toString();
      } else {
        return null;
      }
    }
  }

  String? getSignature(HomeNotifier homeNotifier, bool isCatalog) {
    if (isCatalog) {
      if (homeNotifier.itemResponse?.catlog?.signature != null) {
        return homeNotifier.itemResponse?.catlog?.signature.toString();
      } else {
        return null;
      }
    } else {
      if (homeNotifier.itemDetailsEntity?.catalog?.signature != null) {
        return homeNotifier.itemDetailsEntity?.catalog?.signature.toString();
      } else {
        return null;
      }
    }
  }

  String? getSubtypeRemarks(HomeNotifier homeNotifier, bool isCatalog) {
    if (isCatalog) {
      if (homeNotifier.itemResponse?.catlog?.subtypeRemarks != null) {
        return homeNotifier.itemResponse?.catlog?.subtypeRemarks.toString();
      } else {
        return null;
      }
    } else {
      if (homeNotifier.itemDetailsEntity?.catalog?.subtypeRemarks != null) {
        return homeNotifier.itemDetailsEntity?.catalog?.subtypeRemarks
            .toString();
      } else {
        return null;
      }
    }
  }

  String? getSubtype(HomeNotifier homeNotifier, bool isCatalog) {
    if (isCatalog) {
      if (homeNotifier.itemResponse?.catlog?.subtype != null) {
        return homeNotifier.itemResponse?.catlog?.subtype.toString();
      } else {
        return null;
      }
    } else {
      if (homeNotifier.itemDetailsEntity?.catalog?.subtype != null) {
        return homeNotifier.itemDetailsEntity?.catalog?.subtype.toString();
      } else {
        return null;
      }
    }
  }

  String? getNickname(HomeNotifier homeNotifier, bool isCatalog) {
    if (isCatalog) {
      if (homeNotifier.itemResponse?.catlog?.nickname != null) {
        return homeNotifier.itemResponse?.catlog?.nickname.toString();
      } else {
        return null;
      }
    } else {
      if (homeNotifier.itemDetailsEntity?.catalog?.nickname != null) {
        return homeNotifier.itemDetailsEntity?.catalog?.nickname.toString();
      } else {
        return null;
      }
    }
  }

  String? getItemGroupName(HomeNotifier homeNotifier, bool isCatalog) {
    if (isCatalog) {
      if (homeNotifier.itemResponse?.catlog?.itemGroupName != null) {
        return homeNotifier.itemResponse?.catlog?.itemGroupName;
      } else {
        return null;
      }
    } else {
      if (homeNotifier.itemDetailsEntity?.catalog?.itemGroupName != null) {
        return homeNotifier.itemDetailsEntity?.catalog?.itemGroupName;
      } else {
        return null;
      }
    }
  }

  String? getItemBaseName(HomeNotifier homeNotifier, bool isCatalog) {
    if (isCatalog) {
      if (homeNotifier.itemResponse?.catlog?.itemBaseName != null) {
        return homeNotifier.itemResponse?.catlog?.itemBaseName;
      } else {
        return null;
      }
    } else {
      if (homeNotifier.itemDetailsEntity?.catalog?.itemBaseName != null) {
        return homeNotifier.itemDetailsEntity?.catalog?.itemBaseName;
      } else {
        return null;
      }
    }
  }

  String? getSkuNumaMain(HomeNotifier homeNotifier, bool isCatalog) {
    if (isCatalog) {
      if (homeNotifier.itemResponse?.catlog?.skuNumaMain != null) {
        return homeNotifier.itemResponse?.catlog?.skuNumaMain;
      } else {
        return null;
      }
    } else {
      if (homeNotifier.itemDetailsEntity?.catalog?.skuNumaMain != null) {
        return homeNotifier.itemDetailsEntity?.catalog?.skuNumaMain;
      } else {
        return null;
      }
    }
  }

  String? getSkuStandardMain(HomeNotifier homeNotifier, bool isCatalog) {
    if (isCatalog) {
      if (homeNotifier.itemResponse?.catlog?.skuStandardMain != null) {
        return homeNotifier.itemResponse?.catlog?.skuStandardMain.toString();
      } else {
        return null;
      }
    } else {
      if (homeNotifier.itemDetailsEntity?.catalog?.skuStandardMain != null) {
        return homeNotifier.itemDetailsEntity?.catalog?.skuStandardMain
            .toString();
      } else {
        return null;
      }
    }
  }

  String? getSeriesCountry(HomeNotifier homeNotifier, bool isCatalog) {
    if (isCatalog) {
      return null;
    } else {
      if (homeNotifier.itemDetailsEntity?.catalog?.series != null) {
        return homeNotifier.itemDetailsEntity?.catalog?.series?.countryCode ??
            '';
      } else {
        return null;
      }
    }
  }

  String? getSeriesPubid(HomeNotifier homeNotifier, bool isCatalog) {
    if (isCatalog) {
      return null;
    } else {
      if (homeNotifier.itemDetailsEntity?.catalog?.series != null) {
        return homeNotifier.itemDetailsEntity?.catalog?.series?.pubId ?? '';
      } else {
        return null;
      }
    }
  }

  String? getMintage(HomeNotifier homeNotifier, bool isCatalog) {
    if (isCatalog) {
      if (homeNotifier.itemResponse?.catlog?.mintage != null) {
        return homeNotifier.itemResponse?.catlog?.mintage;
      } else {
        return null;
      }
    } else {
      if (homeNotifier.itemDetailsEntity?.catalog?.mintage != null) {
        return homeNotifier.itemDetailsEntity?.catalog?.mintage;
      } else {
        return null;
      }
    }
  }

  String? getMint(HomeNotifier homeNotifier, bool isCatalog) {
    if (isCatalog) {
      if (homeNotifier.itemResponse?.catlog?.mint != null) {
        return homeNotifier.itemResponse?.catlog?.mint;
      } else {
        return null;
      }
    } else {
      if (homeNotifier.itemDetailsEntity?.catalog?.mint != null) {
        return homeNotifier.itemDetailsEntity?.catalog?.mint;
      } else {
        return null;
      }
    }
  }

  String? getAlloy(HomeNotifier homeNotifier, bool isCatalog) {
    if (isCatalog) {
      if (homeNotifier.itemResponse?.catlog?.alloy != null) {
        return homeNotifier.itemResponse?.catlog?.alloy;
      } else {
        return null;
      }
    } else {
      if (homeNotifier.itemDetailsEntity?.catalog?.alloy != null) {
        return homeNotifier.itemDetailsEntity?.catalog?.alloy;
      } else {
        return null;
      }
    }
  }

  String? getShape(HomeNotifier homeNotifier, bool isCatalog) {
    if (isCatalog) {
      if (homeNotifier.itemResponse?.catlog?.shape != null) {
        return homeNotifier.itemResponse?.catlog?.shape;
      } else {
        return null;
      }
    } else {
      if (homeNotifier.itemDetailsEntity?.catalog?.shape != null) {
        return homeNotifier.itemDetailsEntity?.catalog?.shape;
      } else {
        return null;
      }
    }
  }

  String? getEdge(HomeNotifier homeNotifier, bool isCatalog) {
    if (isCatalog) {
      if (homeNotifier.itemResponse?.catlog?.edge != null) {
        return homeNotifier.itemResponse?.catlog?.edge;
      } else {
        return null;
      }
    } else {
      if (homeNotifier.itemDetailsEntity?.catalog?.edge != null) {
        return homeNotifier.itemDetailsEntity?.catalog?.edge;
      } else {
        return null;
      }
    }
  }

  String? getWeight(HomeNotifier homeNotifier, bool isCatalog) {
    if (isCatalog) {
      if (homeNotifier.itemResponse?.catlog?.weight != null) {
        return homeNotifier.itemResponse?.catlog?.weight;
      } else {
        return null;
      }
    } else {
      if (homeNotifier.itemDetailsEntity?.catalog?.weight != null) {
        return homeNotifier.itemDetailsEntity?.catalog?.weight;
      } else {
        return null;
      }
    }
  }

  String? getThickness(HomeNotifier homeNotifier, bool isCatalog) {
    if (isCatalog) {
      if (homeNotifier.itemResponse?.catlog?.thickness != null) {
        return homeNotifier.itemResponse?.catlog?.thickness;
      } else {
        return null;
      }
    } else {
      if (homeNotifier.itemDetailsEntity?.catalog?.thickness != null) {
        return homeNotifier.itemDetailsEntity?.catalog?.thickness;
      } else {
        return null;
      }
    }
  }

  String? getDiameter(HomeNotifier homeNotifier, bool isCatalog) {
    if (isCatalog) {
      if (homeNotifier.itemResponse?.catlog?.diameter != null) {
        return homeNotifier.itemResponse?.catlog?.diameter;
      } else {
        return null;
      }
    } else {
      if (homeNotifier.itemDetailsEntity?.catalog?.diameter != null) {
        return homeNotifier.itemDetailsEntity?.catalog?.diameter;
      } else {
        return null;
      }
    }
  }

  String? getYear(HomeNotifier homeNotifier, bool isCatalog) {
    if (isCatalog) {
      if (homeNotifier.itemResponse?.catlog?.year != null) {
        return homeNotifier.itemResponse?.catlog?.year;
      } else {
        return null;
      }
    } else {
      if (homeNotifier.itemDetailsEntity?.catalog?.year != null) {
        return homeNotifier.itemDetailsEntity?.catalog?.year;
      } else {
        return null;
      }
    }
  }

  String? getLocalcalendarDate(HomeNotifier homeNotifier, bool isCatalog) {
    if (isCatalog) {
      if (homeNotifier.itemResponse?.catlog?.localcalendarDate != null) {
        return homeNotifier.itemResponse?.catlog?.localcalendarDate;
      } else {
        return null;
      }
    } else {
      if (homeNotifier.itemDetailsEntity?.catalog?.localcalendarDate != null) {
        return homeNotifier.itemDetailsEntity?.catalog?.localcalendarDate;
      } else {
        return null;
      }
    }
  }

  String? getDescription(HomeNotifier homeNotifier, bool isCatalog) {
    if (isCatalog) {
      if (homeNotifier.itemResponse!.catlog?.sku!.series != null &&
          homeNotifier.itemResponse!.catlog!.sku!.series!.isNotEmpty &&
          homeNotifier.itemResponse!.catlog?.sku?.series?[0].translations !=
              null &&
          homeNotifier
              .itemResponse!.catlog!.sku!.series![0].translations!.isNotEmpty) {
        return homeNotifier
            .itemResponse!.catlog?.sku?.series?[0].translations?[0].description;
      } else {
        return null;
      }
    } else {
      if (homeNotifier.itemDetailsEntity?.catalog?.series != null &&
          homeNotifier.itemDetailsEntity?.catalog?.series?.translations !=
              null &&
          homeNotifier
              .itemDetailsEntity!.catalog!.series!.translations!.isNotEmpty) {
        return homeNotifier
            .itemDetailsEntity!.catalog!.series!.translations![0].description;
      } else {
        return null;
      }
    }
  }

  String? getHebrewDateAndYear(HomeNotifier homeNotifier, bool isCatalog) {
    if (isCatalog) {
      if (homeNotifier.itemResponse?.catlog?.dateInHebrew != null) {
        return homeNotifier.itemResponse?.catlog?.dateInHebrew;
      } else {
        return null;
      }
    } else {
      if (homeNotifier.itemDetailsEntity?.catalog?.dateInHebrew != null) {
        return homeNotifier.itemDetailsEntity?.catalog?.dateInHebrew;
      } else {
        return null;
      }
    }
  }

  String? getInCirculationUntil(HomeNotifier homeNotifier, bool isCatalog) {
    if (isCatalog) {
      if (homeNotifier.itemResponse?.catlog?.inCirculation != null) {
        return homeNotifier.itemResponse?.catlog?.inCirculation;
      } else {
        return null;
      }
    } else {
      if (homeNotifier.itemDetailsEntity?.catalog?.inCirculation != null) {
        return homeNotifier.itemDetailsEntity?.catalog?.inCirculation;
      } else {
        return null;
      }
    }
  }

  String? getCeasedToBeLegal(HomeNotifier homeNotifier, bool isCatalog) {
    if (isCatalog) {
      if (homeNotifier.itemResponse?.catlog?.ceasedToBeLegal != null) {
        return homeNotifier.itemResponse?.catlog?.ceasedToBeLegal;
      } else {
        return null;
      }
    } else {
      if (homeNotifier.itemDetailsEntity?.catalog?.ceasedToBeLegal != null) {
        return homeNotifier.itemDetailsEntity?.catalog?.ceasedToBeLegal;
      } else {
        return null;
      }
    }
  }

  String? getFront(HomeNotifier homeNotifier, bool isCatalog) {
    if (isCatalog) {
      if (homeNotifier.itemResponse?.catlog?.ceasedToBeLegal != null) {
        return homeNotifier.itemResponse?.catlog?.ceasedToBeLegal;
      } else {
        return null;
      }
    } else {
      if (homeNotifier.itemDetailsEntity?.catalog?.ceasedToBeLegal != null) {
        return homeNotifier.itemDetailsEntity?.catalog?.ceasedToBeLegal;
      } else {
        return null;
      }
    }
  }