Cache constructor
Cache({
- required String render,
- required ContentType? contentType,
- DateTime? createdAt,
Creates a Cache instance.
If createdAt is not provided, it defaults to the current time.
Implementation
Cache({
required this.render,
required this.contentType,
DateTime? createdAt,
}) : createdAt = createdAt ?? DateTime.now();