copyWith method

Watchers copyWith({
  1. bool? isWatching,
  2. String? self,
  3. int? watchCount,
  4. List<UserDetails>? watchers,
})

Implementation

Watchers copyWith(
    {bool? isWatching,
    String? self,
    int? watchCount,
    List<UserDetails>? watchers}) {
  return Watchers(
    isWatching: isWatching ?? this.isWatching,
    self: self ?? this.self,
    watchCount: watchCount ?? this.watchCount,
    watchers: watchers ?? this.watchers,
  );
}