CachedPreview constructor

CachedPreview({
  1. required String formattedText,
  2. Widget? icon,
  3. String? metadata,
  4. DateTime? cachedAt,
  5. Duration ttl = const Duration(minutes: 5),
})

Implementation

CachedPreview({
  required this.formattedText,
  this.icon,
  this.metadata,
  DateTime? cachedAt,
  this.ttl = const Duration(minutes: 5),
}) : cachedAt = cachedAt ?? DateTime.now();