setDataSavedTimeSP method

Future<void> setDataSavedTimeSP()

Implementation

Future<void> setDataSavedTimeSP() async {
  try {
    SharedPreferences sp = await SharedPreferences.getInstance();
    await sp.setString(
        Constant.sharedPrefLastSaved, DateTime.now().toIso8601String());
  } catch (e) {
    rethrow;
  }
}