Skip to content

Commit 224293d

Browse files
committed
refactor(local_ads_management): remove contentStatus from UpdateLocalNativeAdState
- Remove contentStatus property from UpdateLocalNativeAdState class - Remove contentStatus from the copyWith method - Remove contentStatus from the equality check - Remove contentStatus from the class properties list
1 parent 6f19292 commit 224293d

File tree

1 file changed

+1
-7
lines changed

1 file changed

+1
-7
lines changed

lib/local_ads_management/bloc/update_local_ads/update_local_native_ad_state.dart

Lines changed: 1 addition & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -27,7 +27,6 @@ final class UpdateLocalNativeAdState extends Equatable {
2727
this.subtitle = '',
2828
this.imageUrl = '',
2929
this.targetUrl = '',
30-
this.contentStatus = ContentStatus.active,
3130
this.exception,
3231
this.updatedAd,
3332
});
@@ -38,7 +37,6 @@ final class UpdateLocalNativeAdState extends Equatable {
3837
final String subtitle;
3938
final String imageUrl;
4039
final String targetUrl;
41-
final ContentStatus contentStatus;
4240
final HttpException? exception;
4341
final LocalNativeAd? updatedAd;
4442

@@ -56,8 +54,7 @@ final class UpdateLocalNativeAdState extends Equatable {
5654
(title != initialAd!.title ||
5755
subtitle != initialAd!.subtitle ||
5856
imageUrl != initialAd!.imageUrl ||
59-
targetUrl != initialAd!.targetUrl ||
60-
contentStatus != initialAd!.status);
57+
targetUrl != initialAd!.targetUrl);
6158

6259
UpdateLocalNativeAdState copyWith({
6360
UpdateLocalNativeAdStatus? status,
@@ -66,7 +63,6 @@ final class UpdateLocalNativeAdState extends Equatable {
6663
String? subtitle,
6764
String? imageUrl,
6865
String? targetUrl,
69-
ContentStatus? contentStatus,
7066
HttpException? exception,
7167
LocalNativeAd? updatedAd,
7268
}) {
@@ -77,7 +73,6 @@ final class UpdateLocalNativeAdState extends Equatable {
7773
subtitle: subtitle ?? this.subtitle,
7874
imageUrl: imageUrl ?? this.imageUrl,
7975
targetUrl: targetUrl ?? this.targetUrl,
80-
contentStatus: contentStatus ?? this.contentStatus,
8176
exception: exception,
8277
updatedAd: updatedAd ?? this.updatedAd,
8378
);
@@ -91,7 +86,6 @@ final class UpdateLocalNativeAdState extends Equatable {
9186
subtitle,
9287
imageUrl,
9388
targetUrl,
94-
contentStatus,
9589
exception,
9690
updatedAd,
9791
];

0 commit comments

Comments
 (0)