copyWith method Null safety

Comment copyWith(
  1. {String? commentKey,
  2. String? videoId,
  3. String? message}
)

Implementation

Comment copyWith({
  String? commentKey,
  String? videoId,
  String? message,
}) {
  return Comment(
    commentKey: commentKey ?? this.commentKey,
    videoId: videoId ?? this.videoId,
    message: message ?? this.message,
  );
}