lastFcmCaptureAttemptAtForTesting property
Test seam (D9-iv): reads the persisted D2 capture-backoff timestamp.
Implementation
@visibleForTesting
Future<DateTime?> get lastFcmCaptureAttemptAtForTesting async {
final prefs = await SharedPreferences.getInstance();
final ms = prefs.getInt(_lastFcmCaptureAttemptAtKey);
return ms == null ? null : DateTime.fromMillisecondsSinceEpoch(ms);
}