feedback_detail_state.dart 523 B

12345678910111213141516171819202122
  1. import 'package:domain/entity/feedback_detail_entity.dart';
  2. class FeedbackDetailState {
  3. //是等待状态还是已完成状态(是否已经回复)
  4. bool isReplyState;
  5. //详情数据
  6. FeedbackDetailEntity? detail;
  7. FeedbackDetailState({
  8. this.isReplyState = false,
  9. this.detail,
  10. });
  11. FeedbackDetailState copyWith({bool? isReplyState, FeedbackDetailEntity? detail}) {
  12. return FeedbackDetailState(
  13. isReplyState: isReplyState ?? this.isReplyState,
  14. detail: detail ?? this.detail,
  15. );
  16. }
  17. }