setReviewCount static method

Future<void> setReviewCount(
  1. int count
)

Implementation

static Future<void> setReviewCount(int count) async {
  final dd = DateFormat("MMM-yyyy").format(DateTime.now());
  log("CommonInterface:[setReviewCount]->date->$dd");
  // ponytail: v11 dropped encryptedSharedPreferences; cipher storage is default
  const storage = FlutterSecureStorage();
  int count = await getReviewCount();
  log("CommonInterface:[setReviewCount]->count->to->${count + 1}");
  await storage.write(key: dd, value: (count + 1).toString());
}