feature aggiunta
This commit is contained in:
@@ -10,6 +10,7 @@ class ServicesState extends Equatable {
|
||||
final String query;
|
||||
final DateTimeRange? dateRange;
|
||||
final bool hasReachedMax;
|
||||
final List<PlatformFile> localAttachments;
|
||||
|
||||
const ServicesState({
|
||||
required this.status,
|
||||
@@ -19,6 +20,7 @@ class ServicesState extends Equatable {
|
||||
this.query = '',
|
||||
this.dateRange,
|
||||
this.hasReachedMax = false,
|
||||
this.localAttachments = const [],
|
||||
});
|
||||
|
||||
ServicesState copyWith({
|
||||
@@ -29,6 +31,7 @@ class ServicesState extends Equatable {
|
||||
String? query,
|
||||
DateTimeRange? dateRange,
|
||||
bool? hasReachedMax,
|
||||
List<PlatformFile>? localAttachments,
|
||||
}) {
|
||||
return ServicesState(
|
||||
status: status ?? this.status,
|
||||
@@ -38,6 +41,7 @@ class ServicesState extends Equatable {
|
||||
query: query ?? this.query,
|
||||
dateRange: dateRange ?? this.dateRange,
|
||||
hasReachedMax: hasReachedMax ?? this.hasReachedMax,
|
||||
localAttachments: localAttachments ?? this.localAttachments,
|
||||
);
|
||||
}
|
||||
|
||||
@@ -50,5 +54,6 @@ class ServicesState extends Equatable {
|
||||
query,
|
||||
dateRange,
|
||||
hasReachedMax,
|
||||
localAttachments,
|
||||
];
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user