copyWith method

ActiveMemory<ActiveType> copyWith({
  1. DateTime? createdAt,
  2. DateTime? expiresAt,
  3. ActiveType? activeType,
})

Implementation

ActiveMemory<ActiveType> copyWith({
  DateTime? createdAt,
  DateTime? expiresAt,
  ActiveType? activeType,
}) {
  return ActiveMemory<ActiveType>(
    createdAt: createdAt ?? this.createdAt,
    expiresAt: expiresAt ?? this.expiresAt,
    activeType: activeType ?? this.activeType,
  );
}