loadLastClickedTimeFromPrefs static method

Future<int> loadLastClickedTimeFromPrefs({
  1. required String prefKey,
})

Implementation

static Future<int> loadLastClickedTimeFromPrefs({required String prefKey}) async {
  final prefs = await SharedPreferences.getInstance();
  return prefs.getInt(prefKey) ?? 0;
}