shouldUpsell method

Future<bool> shouldUpsell()

Check if you now is a good time to show an upsell prompt. During calibration phase, this will always be true.

Implementation

Future<bool> shouldUpsell() {
  if (!_contextId.isValid()) {
    return Future.value(true);
  }

  return ContextSdkPlatform.instance
      .contextShouldUpsell(_contextId.contextId);
}