getDataSavedTimeSP method
Implementation
Future<DateTime?> getDataSavedTimeSP() async {
try {
SharedPreferences sp = await SharedPreferences.getInstance();
final data = sp.getString(Constant.sharedPrefLastSaved);
if (data == null) return null;
return DateTime.parse(data);
} catch (e) {
rethrow;
}
}