fromYear static method

LunarYear fromYear(
  1. int lunarYear
)

Implementation

static LunarYear fromYear(int lunarYear) {
  LunarYear? obj = _cache[lunarYear];
  if (null == obj) {
    obj = new LunarYear(lunarYear);
    _cache[lunarYear] = obj;
  }
  return obj;
}