copyWith method

FilterListModel copyWith({
  1. List<FilterItemModel>? filterOptions,
  2. List<FilterItemModel>? previousApplied,
  3. String? title,
  4. String? filterKey,
})

Implementation

FilterListModel copyWith({
  List<FilterItemModel>? filterOptions,
  List<FilterItemModel>? previousApplied,
  String? title,
  String? filterKey,
}) {
  return FilterListModel(
    title: title ?? this.title,
    filterKey: filterKey ?? this.filterKey,
    filterOptions: filterOptions ?? this.filterOptions,
    previousApplied: previousApplied ?? this.previousApplied,
  );
}