updateFlagshipContext<T> method

void updateFlagshipContext<T>(
  1. FlagshipContext flagshipContext,
  2. T value
)

Update with predefined context

Implementation

void updateFlagshipContext<T>(FlagshipContext flagshipContext, T value) {
  if (FlagshipContextManager.chekcValidity(flagshipContext, value)) {
    updateContext(rawValue(flagshipContext), value);
  } else {
    Flagship.logger(Level.ERROR,
        "Skip updating the context with predefined context ${flagshipContext.name} ..... the value is not valid");
  }
}