copyWith method

Author copyWith({
  1. String? id,
  2. String? displayName,
  3. String? url,
  4. String? image,
})

Implementation

Author copyWith({
  String? id,
  String? displayName,
  String? url,
  String? image,
}) {
  return Author(
    id: id ?? this.id,
    displayName: displayName ?? this.displayName,
    url: url ?? this.url,
    image: image ?? this.image,
  );
}