show static method

dynamic show()

Implementation

static show() async {
  const storage = FlutterSecureStorage();

  String? data = await storage.read(key: "inapp");
  if (data != null) {
    try {
      var xdata = json.decode(data.toString());

      var inappMessage = xdata['inapp_message'];

      if (inappMessage) {
        var inAppModel = InAppModel.fromJson(xdata);
        InngageDialog.showInAppDialog(inAppModel);
      }
    } catch (e) {
      log(e.toString());
    }
  }
}