-
Notifications
You must be signed in to change notification settings - Fork 35
Expand file tree
/
Copy pathprocess_state.dart
More file actions
64 lines (61 loc) · 1.57 KB
/
process_state.dart
File metadata and controls
64 lines (61 loc) · 1.57 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
part of 'process_bloc.dart';
class ProcessState extends Equatable {
final List<XFile> originalList;
final List<XFile> processed;
final List<XFile> queue;
final List<String> log;
final String progress;
final List<String> videoDetails;
final XFile? current;
final bool started;
final String? version;
final int? exitCode;
const ProcessState({
required this.originalList,
required this.queue,
required this.processed,
required this.videoDetails,
required this.log,
required this.started,
required this.progress,
required this.current,
required this.version,
this.exitCode,
});
ProcessState copyWith({
List<XFile>? originalList,
List<XFile>? processed,
List<XFile>? queue,
List<String>? log,
List<String>? videoDetails,
bool? started,
String? progress,
String? version,
required XFile? current,
int? exitCode,
}) =>
ProcessState(
originalList: originalList ?? this.originalList,
queue: queue ?? this.queue,
processed: processed ?? this.processed,
log: log ?? this.log,
started: started ?? this.started,
progress: progress ?? this.progress,
videoDetails: videoDetails ?? this.videoDetails,
version: version ?? this.version,
current: current,
exitCode: exitCode);
@override
List<Object?> get props => [
queue,
processed,
log,
current,
started,
progress,
videoDetails,
originalList,
version,
exitCode,
];
}