copyWith method

StoredQuery copyWith({
  1. String? key,
  2. dynamic data,
  3. DateTime? createdAt,
  4. Duration? storageDuration,
})

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,
  );
}