updateFlagshipContext<T> method

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

Implementation

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