user_evaluate_card_item_state.dart 844 B

1234567891011121314151617181920212223242526272829303132333435
  1. class UserEvaluateCardItemState {
  2. final String name;
  3. final String avator;
  4. final double score;
  5. final String time;
  6. final String content;
  7. final List<dynamic>? imageUrls;
  8. const UserEvaluateCardItemState({
  9. required this.name,
  10. required this.avator,
  11. required this.score,
  12. required this.time,
  13. required this.content,
  14. this.imageUrls,
  15. });
  16. UserEvaluateCardItemState copyWith({
  17. String? name,
  18. String? avator,
  19. double? score,
  20. String? time,
  21. String? content,
  22. List<dynamic>? imageUrls,
  23. }) {
  24. return UserEvaluateCardItemState(
  25. name: name ?? this.name,
  26. avator: avator ?? this.avator,
  27. score: score ?? this.score,
  28. time: time ?? this.time,
  29. content: content ?? this.content,
  30. imageUrls: imageUrls ?? this.imageUrls,
  31. );
  32. }
  33. }