copyWith method

Question copyWith({
  1. List<String>? voters,
  2. bool? answered,
  3. bool? hidden,
})

Implementation

Question copyWith({List<String>? voters, bool? answered, bool? hidden}) => Question(
      id: id,
      author: author,
      name: name,
      text: text,
      at: at,
      voters: voters ?? this.voters,
      answered: answered ?? this.answered,
      hidden: hidden ?? this.hidden,
    );