copyWith method

RelationData copyWith({
  1. User? createdBy,
  2. DateTime? createdDate,
  3. String? friendlyCreatedDate,
})

Implementation

RelationData copyWith(
    {User? createdBy, DateTime? createdDate, String? friendlyCreatedDate}) {
  return RelationData(
    createdBy: createdBy ?? this.createdBy,
    createdDate: createdDate ?? this.createdDate,
    friendlyCreatedDate: friendlyCreatedDate ?? this.friendlyCreatedDate,
  );
}