getReviewCount static method

Future<int> getReviewCount()

Implementation

static Future<int> getReviewCount() async {
  final dd = DateFormat("MMM-yyyy").format(DateTime.now());
  log("CommonInterface:[getReviewCount]->date->$dd");
  AndroidOptions getAndroidOptions() => const AndroidOptions(
        encryptedSharedPreferences: true,
      );
  final storage = FlutterSecureStorage(aOptions: getAndroidOptions());
  int c = int.tryParse((await storage.read(key: dd) ?? "0")) ?? 0;
  return c;
}