copyWith method
Create a new StoredQuery from from the current instance.
Implementation
StoredQuery copyWith({
String? key,
dynamic data,
DateTime? createdAt,
Duration? storageDuration,
}) {
return StoredQuery(
key: key ?? this.key,
data: data ?? this.data,
createdAt: createdAt ?? this.createdAt,
storageDuration: storageDuration ?? this.storageDuration,
);
}