testNotificationTimestampUseCaseProvider top-level property

  1. @visibleForTesting
Provider<NotificationTimestampUseCase> testNotificationTimestampUseCaseProvider
final

Implementation

@visibleForTesting
final testNotificationTimestampUseCaseProvider =
    Provider<NotificationTimestampUseCase>((ref) {
  return (AppNotification notification) => notification.timestamp != null
      ? DateUtils.dateOnly(notification.timestamp!.toUtc())
      : null;
});