getPausedTimestamp method

  1. @override
Future<DateTime?> getPausedTimestamp()
override

Get timestamp of when the app became paused to determine if sufficient time has passed for it to be locked

Implementation

@override
Future<DateTime?> getPausedTimestamp() async {
  final dateString = sp.getString(_keyPausedTimestamp);
  if (dateString != null) {
    final date = DateTime.tryParse(dateString);
    return date;
  }
  return null;
}