Skip to content

Commit db50eb0

Browse files
committed
refactor(edit_headline_state): remove excerpt field
This commit removes the `excerpt` field from `EditHeadlineState` and updates the `isFormValid` getter, `copyWith` method, and `props` list. This change reflects the removal of the `excerpt` field from the `Headline` model in the core package.
1 parent 9e45c31 commit db50eb0

File tree

1 file changed

+0
-6
lines changed

1 file changed

+0
-6
lines changed

lib/content_management/bloc/edit_headline/edit_headline_state.dart

Lines changed: 0 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -24,7 +24,6 @@ final class EditHeadlineState extends Equatable {
2424
required this.headlineId,
2525
this.status = EditHeadlineStatus.initial,
2626
this.title = '',
27-
this.excerpt = '',
2827
this.url = '',
2928
this.imageUrl = '',
3029
this.source,
@@ -38,7 +37,6 @@ final class EditHeadlineState extends Equatable {
3837
final EditHeadlineStatus status;
3938
final String headlineId;
4039
final String title;
41-
final String excerpt;
4240
final String url;
4341
final String imageUrl;
4442
final Source? source;
@@ -52,7 +50,6 @@ final class EditHeadlineState extends Equatable {
5250
bool get isFormValid =>
5351
headlineId.isNotEmpty &&
5452
title.isNotEmpty &&
55-
excerpt.isNotEmpty &&
5653
url.isNotEmpty &&
5754
imageUrl.isNotEmpty &&
5855
source != null &&
@@ -66,7 +63,6 @@ final class EditHeadlineState extends Equatable {
6663
EditHeadlineStatus? status,
6764
String? headlineId,
6865
String? title,
69-
String? excerpt,
7066
String? url,
7167
String? imageUrl,
7268
ValueGetter<Source?>? source,
@@ -80,7 +76,6 @@ final class EditHeadlineState extends Equatable {
8076
status: status ?? this.status,
8177
headlineId: headlineId ?? this.headlineId,
8278
title: title ?? this.title,
83-
excerpt: excerpt ?? this.excerpt,
8479
url: url ?? this.url,
8580
imageUrl: imageUrl ?? this.imageUrl,
8681
source: source != null ? source() : this.source,
@@ -97,7 +92,6 @@ final class EditHeadlineState extends Equatable {
9792
status,
9893
headlineId,
9994
title,
100-
excerpt,
10195
url,
10296
imageUrl,
10397
source,

0 commit comments

Comments
 (0)