selfprivacy.org.app/lib/logic/cubit/server_jobs/server_jobs_state.dart

23 lines
619 B
Dart
Raw Normal View History

2022-08-30 03:09:09 +00:00
part of 'server_jobs_cubit.dart';
class ServerJobsState extends ServerInstallationDependendState {
2022-09-18 14:05:41 +00:00
const ServerJobsState({
this.serverJobList = const [],
this.migrationJobUid,
});
2022-08-30 03:09:09 +00:00
final List<ServerJob> serverJobList;
2022-09-18 14:05:41 +00:00
final String? migrationJobUid;
2022-08-30 03:09:09 +00:00
@override
2022-09-18 14:05:41 +00:00
List<Object?> get props => [migrationJobUid, ...serverJobList];
2022-08-30 03:09:09 +00:00
ServerJobsState copyWith({
final List<ServerJob>? serverJobList,
2022-09-18 14:05:41 +00:00
final String? migrationJobUid,
2022-08-30 03:09:09 +00:00
}) =>
ServerJobsState(
serverJobList: serverJobList ?? this.serverJobList,
2022-09-18 14:05:41 +00:00
migrationJobUid: migrationJobUid ?? this.migrationJobUid,
2022-08-30 03:09:09 +00:00
);
}