copyWith method

Topics copyWith({
  1. String? topic,
  2. DateTime? addDate,
})

Implementation

Topics copyWith({
  String? topic,
  DateTime? addDate,
}) {
  return Topics(
    topic: topic ?? this.topic,
    addDate: addDate ?? this.addDate,
  );
}