notificationTimestampUseCaseProvider top-level property

Provider<NotificationTimestampUseCase> notificationTimestampUseCaseProvider
final

Implementation

final notificationTimestampUseCaseProvider =
    Provider<NotificationTimestampUseCase>((ref) {
  return (AppNotification notification) => notification.timestamp != null
      ? DateUtils.dateOnly(notification.timestamp!.toLocal())
      : null;
});