Color getColorOrNull() {
    if (func != null) {
      return func.get();
    }
    if (name != null) {
      return calculateColorOrNull(name);
    }

    return DARK.getValue() ? getDarkVariant() : this;
  }
Color getColorOrNull()