lastSessionTimestamp property
int
get
lastSessionTimestamp
Implementation
int get lastSessionTimestamp {
if (_lastSessionTimestamp == null || _lastSessionTimestamp == 0) {
final storedTimestamp = sharedPreferences.getInt(lastSessionTimestampKey);
if (storedTimestamp != null) {
_lastSessionTimestamp = storedTimestamp;
} else {
_lastSessionTimestamp = 0;
}
}
return _lastSessionTimestamp!;
}
set
lastSessionTimestamp
(int newTimestamp)
Implementation
set lastSessionTimestamp(int newTimestamp) {
_lastSessionTimestamp = newTimestamp;
sharedPreferences.setInt(
AvoSessionTracker.lastSessionTimestampKey, newTimestamp);
}