shouldOpenShowcase property

Future<bool> shouldOpenShowcase

Whether this showcase should be opened.

Implementation

Future<bool> get shouldOpenShowcase async {
  if (!enabled) {
    return false;
  }
  if (!doNotReopenOnClose) {
    return true;
  }
  SharedPreferences preferences = await SharedPreferences.getInstance();
  bool? result =
      preferences.getBool('$bubbleShowcaseId.$bubbleShowcaseVersion');
  return result == null || result;
}