Untitled
unknown
plain_text
a year ago
2.6 kB
8
Indexable
part of 'crush_feed_view.dart';
// class CrushFeedViewState extends Equatable {
class CrushFeedViewState extends PaginatedListState<CrushFeedModel> {
final TextEditingController searchController;
final Map<String, dynamic> map;
final int page;
final bool isShowWidget;
final TextEditingController commentController;
final FocusNode focusNode;
final String fullName;
final int connectionPostId;
final PostCommentModel? postCommentModel;
final int index;
final List<ReportModel> reportList;
final int selectedReportIndex;
const CrushFeedViewState({
required this.searchController,
required this.commentController,
required this.focusNode,
this.map = const {},
super.list = const [],
super.isLoading = false,
super.reachAtEnd,
this.page = 1,
this.isShowWidget = false,
this.fullName = "",
this.connectionPostId = 0,
this.postCommentModel,
this.index =0,
this.reportList = const [],
this.selectedReportIndex = 0,
});
@override
List<Object?> get props => super.props
..addAll([
searchController,
map,
page,
isShowWidget,
commentController,
focusNode,
fullName,
connectionPostId,
postCommentModel,
index,
reportList,
selectedReportIndex,
]);
@override
CrushFeedViewState copyWith({
List<CrushFeedModel>? list,
Map<String, dynamic>? map,
bool? isLoading,
bool? reachAtEnd,
TextEditingController? searchController,
TextEditingController? commentController,
FocusNode? focusNode,
int? page,
bool? isShowWidget,
String? fullName,
int? connectionPostId,
int? index,
PostCommentModel? postCommentModel,
List<ReportModel>? reportList,
int? selectedReportIndex,
}) {
return CrushFeedViewState(
list: list ?? this.list,
map: map ?? this.map,
isLoading: isLoading ?? this.isLoading,
reachAtEnd: reachAtEnd ?? this.reachAtEnd,
searchController: searchController ?? this.searchController,
page: page ?? this.page,
commentController: commentController ?? this.commentController,
focusNode: focusNode ?? this.focusNode,
fullName: fullName ?? this.fullName,
isShowWidget: isShowWidget ?? this.isShowWidget,
connectionPostId: connectionPostId ?? this.connectionPostId,
index: index ?? this.index,
postCommentModel: postCommentModel ?? this.postCommentModel,
reportList: reportList ?? this.reportList,
selectedReportIndex: selectedReportIndex ?? this.selectedReportIndex,
);
}
}
Editor is loading...
Leave a Comment