|
1
|
// coverage:ignore-file |
|
2
|
// GENERATED CODE - DO NOT MODIFY BY HAND |
|
3
|
// ignore_for_file: type=lint |
|
4
|
// ignore_for_file: unused_element, deprecated_member_use, deprecated_member_use_from_same_package, use_function_type_syntax_for_parameters, unnecessary_const, avoid_init_to_null, invalid_override_different_default_values_named, prefer_expression_function_bodies, annotate_overrides, invalid_annotation_target, unnecessary_question_mark |
|
5
|
|
|
6
|
part of 'api.dart'; |
|
7
|
|
|
8
|
// ************************************************************************** |
|
9
|
// FreezedGenerator |
|
10
|
// ************************************************************************** |
|
11
|
|
|
12
|
T _$identity<T>(T value) => value; |
|
13
|
|
|
14
|
final _privateConstructorUsedError = UnsupportedError( |
|
15
|
'It seems like you constructed your class using `MyClass._()`. This constructor is only meant to be used by freezed and you are not supposed to need it nor use it.\nPlease check the documentation here for more information: https://github.com/rrousselGit/freezed#adding-getters-and-methods-to-our-models'); |
|
16
|
|
|
17
|
/// @nodoc |
|
18
|
mixin _$OndeError { |
|
19
|
@optionalTypeArgs |
|
20
|
TResult when<TResult extends Object?>({ |
|
21
|
required TResult Function() noModelLoaded, |
|
22
|
required TResult Function(String modelName) alreadyLoaded, |
|
23
|
required TResult Function(String reason) modelBuild, |
|
24
|
required TResult Function(String reason) inference, |
|
25
|
required TResult Function() cancelled, |
|
26
|
required TResult Function(String reason) other, |
|
27
|
}) => |
|
28
|
throw _privateConstructorUsedError; |
|
29
|
@optionalTypeArgs |
|
30
|
TResult? whenOrNull<TResult extends Object?>({ |
|
31
|
TResult? Function()? noModelLoaded, |
|
32
|
TResult? Function(String modelName)? alreadyLoaded, |
|
33
|
TResult? Function(String reason)? modelBuild, |
|
34
|
TResult? Function(String reason)? inference, |
|
35
|
TResult? Function()? cancelled, |
|
36
|
TResult? Function(String reason)? other, |
|
37
|
}) => |
|
38
|
throw _privateConstructorUsedError; |
|
39
|
@optionalTypeArgs |
|
40
|
TResult maybeWhen<TResult extends Object?>({ |
|
41
|
TResult Function()? noModelLoaded, |
|
42
|
TResult Function(String modelName)? alreadyLoaded, |
|
43
|
TResult Function(String reason)? modelBuild, |
|
44
|
TResult Function(String reason)? inference, |
|
45
|
TResult Function()? cancelled, |
|
46
|
TResult Function(String reason)? other, |
|
47
|
required TResult orElse(), |
|
48
|
}) => |
|
49
|
throw _privateConstructorUsedError; |
|
50
|
@optionalTypeArgs |
|
51
|
TResult map<TResult extends Object?>({ |
|
52
|
required TResult Function(OndeError_NoModelLoaded value) noModelLoaded, |
|
53
|
required TResult Function(OndeError_AlreadyLoaded value) alreadyLoaded, |
|
54
|
required TResult Function(OndeError_ModelBuild value) modelBuild, |
|
55
|
required TResult Function(OndeError_Inference value) inference, |
|
56
|
required TResult Function(OndeError_Cancelled value) cancelled, |
|
57
|
required TResult Function(OndeError_Other value) other, |
|
58
|
}) => |
|
59
|
throw _privateConstructorUsedError; |
|
60
|
@optionalTypeArgs |
|
61
|
TResult? mapOrNull<TResult extends Object?>({ |
|
62
|
TResult? Function(OndeError_NoModelLoaded value)? noModelLoaded, |
|
63
|
TResult? Function(OndeError_AlreadyLoaded value)? alreadyLoaded, |
|
64
|
TResult? Function(OndeError_ModelBuild value)? modelBuild, |
|
65
|
TResult? Function(OndeError_Inference value)? inference, |
|
66
|
TResult? Function(OndeError_Cancelled value)? cancelled, |
|
67
|
TResult? Function(OndeError_Other value)? other, |
|
68
|
}) => |
|
69
|
throw _privateConstructorUsedError; |
|
70
|
@optionalTypeArgs |
|
71
|
TResult maybeMap<TResult extends Object?>({ |
|
72
|
TResult Function(OndeError_NoModelLoaded value)? noModelLoaded, |
|
73
|
TResult Function(OndeError_AlreadyLoaded value)? alreadyLoaded, |
|
74
|
TResult Function(OndeError_ModelBuild value)? modelBuild, |
|
75
|
TResult Function(OndeError_Inference value)? inference, |
|
76
|
TResult Function(OndeError_Cancelled value)? cancelled, |
|
77
|
TResult Function(OndeError_Other value)? other, |
|
78
|
required TResult orElse(), |
|
79
|
}) => |
|
80
|
throw _privateConstructorUsedError; |
|
81
|
} |
|
82
|
|
|
83
|
/// @nodoc |
|
84
|
abstract class $OndeErrorCopyWith<$Res> { |
|
85
|
factory $OndeErrorCopyWith(OndeError value, $Res Function(OndeError) then) = |
|
86
|
_$OndeErrorCopyWithImpl<$Res, OndeError>; |
|
87
|
} |
|
88
|
|
|
89
|
/// @nodoc |
|
90
|
class _$OndeErrorCopyWithImpl<$Res, $Val extends OndeError> |
|
91
|
implements $OndeErrorCopyWith<$Res> { |
|
92
|
_$OndeErrorCopyWithImpl(this._value, this._then); |
|
93
|
|
|
94
|
// ignore: unused_field |
|
95
|
final $Val _value; |
|
96
|
// ignore: unused_field |
|
97
|
final $Res Function($Val) _then; |
|
98
|
|
|
99
|
/// Create a copy of OndeError |
|
100
|
/// with the given fields replaced by the non-null parameter values. |
|
101
|
} |
|
102
|
|
|
103
|
/// @nodoc |
|
104
|
abstract class _$$OndeError_NoModelLoadedImplCopyWith<$Res> { |
|
105
|
factory _$$OndeError_NoModelLoadedImplCopyWith( |
|
106
|
_$OndeError_NoModelLoadedImpl value, |
|
107
|
$Res Function(_$OndeError_NoModelLoadedImpl) then) = |
|
108
|
__$$OndeError_NoModelLoadedImplCopyWithImpl<$Res>; |
|
109
|
} |
|
110
|
|
|
111
|
/// @nodoc |
|
112
|
class __$$OndeError_NoModelLoadedImplCopyWithImpl<$Res> |
|
113
|
extends _$OndeErrorCopyWithImpl<$Res, _$OndeError_NoModelLoadedImpl> |
|
114
|
implements _$$OndeError_NoModelLoadedImplCopyWith<$Res> { |
|
115
|
__$$OndeError_NoModelLoadedImplCopyWithImpl( |
|
116
|
_$OndeError_NoModelLoadedImpl _value, |
|
117
|
$Res Function(_$OndeError_NoModelLoadedImpl) _then) |
|
118
|
: super(_value, _then); |
|
119
|
|
|
120
|
/// Create a copy of OndeError |
|
121
|
/// with the given fields replaced by the non-null parameter values. |
|
122
|
} |
|
123
|
|
|
124
|
/// @nodoc |
|
125
|
|
|
126
|
class _$OndeError_NoModelLoadedImpl extends OndeError_NoModelLoaded { |
|
127
|
const _$OndeError_NoModelLoadedImpl() : super._(); |
|
128
|
|
|
129
|
@override |
|
130
|
String toString() { |
|
131
|
return 'OndeError.noModelLoaded()'; |
|
132
|
} |
|
133
|
|
|
134
|
@override |
|
135
|
bool operator ==(Object other) { |
|
136
|
return identical(this, other) || |
|
137
|
(other.runtimeType == runtimeType && |
|
138
|
other is _$OndeError_NoModelLoadedImpl); |
|
139
|
} |
|
140
|
|
|
141
|
@override |
|
142
|
int get hashCode => runtimeType.hashCode; |
|
143
|
|
|
144
|
@override |
|
145
|
@optionalTypeArgs |
|
146
|
TResult when<TResult extends Object?>({ |
|
147
|
required TResult Function() noModelLoaded, |
|
148
|
required TResult Function(String modelName) alreadyLoaded, |
|
149
|
required TResult Function(String reason) modelBuild, |
|
150
|
required TResult Function(String reason) inference, |
|
151
|
required TResult Function() cancelled, |
|
152
|
required TResult Function(String reason) other, |
|
153
|
}) { |
|
154
|
return noModelLoaded(); |
|
155
|
} |
|
156
|
|
|
157
|
@override |
|
158
|
@optionalTypeArgs |
|
159
|
TResult? whenOrNull<TResult extends Object?>({ |
|
160
|
TResult? Function()? noModelLoaded, |
|
161
|
TResult? Function(String modelName)? alreadyLoaded, |
|
162
|
TResult? Function(String reason)? modelBuild, |
|
163
|
TResult? Function(String reason)? inference, |
|
164
|
TResult? Function()? cancelled, |
|
165
|
TResult? Function(String reason)? other, |
|
166
|
}) { |
|
167
|
return noModelLoaded?.call(); |
|
168
|
} |
|
169
|
|
|
170
|
@override |
|
171
|
@optionalTypeArgs |
|
172
|
TResult maybeWhen<TResult extends Object?>({ |
|
173
|
TResult Function()? noModelLoaded, |
|
174
|
TResult Function(String modelName)? alreadyLoaded, |
|
175
|
TResult Function(String reason)? modelBuild, |
|
176
|
TResult Function(String reason)? inference, |
|
177
|
TResult Function()? cancelled, |
|
178
|
TResult Function(String reason)? other, |
|
179
|
required TResult orElse(), |
|
180
|
}) { |
|
181
|
if (noModelLoaded != null) { |
|
182
|
return noModelLoaded(); |
|
183
|
} |
|
184
|
return orElse(); |
|
185
|
} |
|
186
|
|
|
187
|
@override |
|
188
|
@optionalTypeArgs |
|
189
|
TResult map<TResult extends Object?>({ |
|
190
|
required TResult Function(OndeError_NoModelLoaded value) noModelLoaded, |
|
191
|
required TResult Function(OndeError_AlreadyLoaded value) alreadyLoaded, |
|
192
|
required TResult Function(OndeError_ModelBuild value) modelBuild, |
|
193
|
required TResult Function(OndeError_Inference value) inference, |
|
194
|
required TResult Function(OndeError_Cancelled value) cancelled, |
|
195
|
required TResult Function(OndeError_Other value) other, |
|
196
|
}) { |
|
197
|
return noModelLoaded(this); |
|
198
|
} |
|
199
|
|
|
200
|
@override |
|
201
|
@optionalTypeArgs |
|
202
|
TResult? mapOrNull<TResult extends Object?>({ |
|
203
|
TResult? Function(OndeError_NoModelLoaded value)? noModelLoaded, |
|
204
|
TResult? Function(OndeError_AlreadyLoaded value)? alreadyLoaded, |
|
205
|
TResult? Function(OndeError_ModelBuild value)? modelBuild, |
|
206
|
TResult? Function(OndeError_Inference value)? inference, |
|
207
|
TResult? Function(OndeError_Cancelled value)? cancelled, |
|
208
|
TResult? Function(OndeError_Other value)? other, |
|
209
|
}) { |
|
210
|
return noModelLoaded?.call(this); |
|
211
|
} |
|
212
|
|
|
213
|
@override |
|
214
|
@optionalTypeArgs |
|
215
|
TResult maybeMap<TResult extends Object?>({ |
|
216
|
TResult Function(OndeError_NoModelLoaded value)? noModelLoaded, |
|
217
|
TResult Function(OndeError_AlreadyLoaded value)? alreadyLoaded, |
|
218
|
TResult Function(OndeError_ModelBuild value)? modelBuild, |
|
219
|
TResult Function(OndeError_Inference value)? inference, |
|
220
|
TResult Function(OndeError_Cancelled value)? cancelled, |
|
221
|
TResult Function(OndeError_Other value)? other, |
|
222
|
required TResult orElse(), |
|
223
|
}) { |
|
224
|
if (noModelLoaded != null) { |
|
225
|
return noModelLoaded(this); |
|
226
|
} |
|
227
|
return orElse(); |
|
228
|
} |
|
229
|
} |
|
230
|
|
|
231
|
abstract class OndeError_NoModelLoaded extends OndeError { |
|
232
|
const factory OndeError_NoModelLoaded() = _$OndeError_NoModelLoadedImpl; |
|
233
|
const OndeError_NoModelLoaded._() : super._(); |
|
234
|
} |
|
235
|
|
|
236
|
/// @nodoc |
|
237
|
abstract class _$$OndeError_AlreadyLoadedImplCopyWith<$Res> { |
|
238
|
factory _$$OndeError_AlreadyLoadedImplCopyWith( |
|
239
|
_$OndeError_AlreadyLoadedImpl value, |
|
240
|
$Res Function(_$OndeError_AlreadyLoadedImpl) then) = |
|
241
|
__$$OndeError_AlreadyLoadedImplCopyWithImpl<$Res>; |
|
242
|
@useResult |
|
243
|
$Res call({String modelName}); |
|
244
|
} |
|
245
|
|
|
246
|
/// @nodoc |
|
247
|
class __$$OndeError_AlreadyLoadedImplCopyWithImpl<$Res> |
|
248
|
extends _$OndeErrorCopyWithImpl<$Res, _$OndeError_AlreadyLoadedImpl> |
|
249
|
implements _$$OndeError_AlreadyLoadedImplCopyWith<$Res> { |
|
250
|
__$$OndeError_AlreadyLoadedImplCopyWithImpl( |
|
251
|
_$OndeError_AlreadyLoadedImpl _value, |
|
252
|
$Res Function(_$OndeError_AlreadyLoadedImpl) _then) |
|
253
|
: super(_value, _then); |
|
254
|
|
|
255
|
/// Create a copy of OndeError |
|
256
|
/// with the given fields replaced by the non-null parameter values. |
|
257
|
@pragma('vm:prefer-inline') |
|
258
|
@override |
|
259
|
$Res call({ |
|
260
|
Object? modelName = null, |
|
261
|
}) { |
|
262
|
return _then(_$OndeError_AlreadyLoadedImpl( |
|
263
|
modelName: null == modelName |
|
264
|
? _value.modelName |
|
265
|
: modelName // ignore: cast_nullable_to_non_nullable |
|
266
|
as String, |
|
267
|
)); |
|
268
|
} |
|
269
|
} |
|
270
|
|
|
271
|
/// @nodoc |
|
272
|
|
|
273
|
class _$OndeError_AlreadyLoadedImpl extends OndeError_AlreadyLoaded { |
|
274
|
const _$OndeError_AlreadyLoadedImpl({required this.modelName}) : super._(); |
|
275
|
|
|
276
|
@override |
|
277
|
final String modelName; |
|
278
|
|
|
279
|
@override |
|
280
|
String toString() { |
|
281
|
return 'OndeError.alreadyLoaded(modelName: $modelName)'; |
|
282
|
} |
|
283
|
|
|
284
|
@override |
|
285
|
bool operator ==(Object other) { |
|
286
|
return identical(this, other) || |
|
287
|
(other.runtimeType == runtimeType && |
|
288
|
other is _$OndeError_AlreadyLoadedImpl && |
|
289
|
(identical(other.modelName, modelName) || |
|
290
|
other.modelName == modelName)); |
|
291
|
} |
|
292
|
|
|
293
|
@override |
|
294
|
int get hashCode => Object.hash(runtimeType, modelName); |
|
295
|
|
|
296
|
/// Create a copy of OndeError |
|
297
|
/// with the given fields replaced by the non-null parameter values. |
|
298
|
@JsonKey(includeFromJson: false, includeToJson: false) |
|
299
|
@override |
|
300
|
@pragma('vm:prefer-inline') |
|
301
|
_$$OndeError_AlreadyLoadedImplCopyWith<_$OndeError_AlreadyLoadedImpl> |
|
302
|
get copyWith => __$$OndeError_AlreadyLoadedImplCopyWithImpl< |
|
303
|
_$OndeError_AlreadyLoadedImpl>(this, _$identity); |
|
304
|
|
|
305
|
@override |
|
306
|
@optionalTypeArgs |
|
307
|
TResult when<TResult extends Object?>({ |
|
308
|
required TResult Function() noModelLoaded, |
|
309
|
required TResult Function(String modelName) alreadyLoaded, |
|
310
|
required TResult Function(String reason) modelBuild, |
|
311
|
required TResult Function(String reason) inference, |
|
312
|
required TResult Function() cancelled, |
|
313
|
required TResult Function(String reason) other, |
|
314
|
}) { |
|
315
|
return alreadyLoaded(modelName); |
|
316
|
} |
|
317
|
|
|
318
|
@override |
|
319
|
@optionalTypeArgs |
|
320
|
TResult? whenOrNull<TResult extends Object?>({ |
|
321
|
TResult? Function()? noModelLoaded, |
|
322
|
TResult? Function(String modelName)? alreadyLoaded, |
|
323
|
TResult? Function(String reason)? modelBuild, |
|
324
|
TResult? Function(String reason)? inference, |
|
325
|
TResult? Function()? cancelled, |
|
326
|
TResult? Function(String reason)? other, |
|
327
|
}) { |
|
328
|
return alreadyLoaded?.call(modelName); |
|
329
|
} |
|
330
|
|
|
331
|
@override |
|
332
|
@optionalTypeArgs |
|
333
|
TResult maybeWhen<TResult extends Object?>({ |
|
334
|
TResult Function()? noModelLoaded, |
|
335
|
TResult Function(String modelName)? alreadyLoaded, |
|
336
|
TResult Function(String reason)? modelBuild, |
|
337
|
TResult Function(String reason)? inference, |
|
338
|
TResult Function()? cancelled, |
|
339
|
TResult Function(String reason)? other, |
|
340
|
required TResult orElse(), |
|
341
|
}) { |
|
342
|
if (alreadyLoaded != null) { |
|
343
|
return alreadyLoaded(modelName); |
|
344
|
} |
|
345
|
return orElse(); |
|
346
|
} |
|
347
|
|
|
348
|
@override |
|
349
|
@optionalTypeArgs |
|
350
|
TResult map<TResult extends Object?>({ |
|
351
|
required TResult Function(OndeError_NoModelLoaded value) noModelLoaded, |
|
352
|
required TResult Function(OndeError_AlreadyLoaded value) alreadyLoaded, |
|
353
|
required TResult Function(OndeError_ModelBuild value) modelBuild, |
|
354
|
required TResult Function(OndeError_Inference value) inference, |
|
355
|
required TResult Function(OndeError_Cancelled value) cancelled, |
|
356
|
required TResult Function(OndeError_Other value) other, |
|
357
|
}) { |
|
358
|
return alreadyLoaded(this); |
|
359
|
} |
|
360
|
|
|
361
|
@override |
|
362
|
@optionalTypeArgs |
|
363
|
TResult? mapOrNull<TResult extends Object?>({ |
|
364
|
TResult? Function(OndeError_NoModelLoaded value)? noModelLoaded, |
|
365
|
TResult? Function(OndeError_AlreadyLoaded value)? alreadyLoaded, |
|
366
|
TResult? Function(OndeError_ModelBuild value)? modelBuild, |
|
367
|
TResult? Function(OndeError_Inference value)? inference, |
|
368
|
TResult? Function(OndeError_Cancelled value)? cancelled, |
|
369
|
TResult? Function(OndeError_Other value)? other, |
|
370
|
}) { |
|
371
|
return alreadyLoaded?.call(this); |
|
372
|
} |
|
373
|
|
|
374
|
@override |
|
375
|
@optionalTypeArgs |
|
376
|
TResult maybeMap<TResult extends Object?>({ |
|
377
|
TResult Function(OndeError_NoModelLoaded value)? noModelLoaded, |
|
378
|
TResult Function(OndeError_AlreadyLoaded value)? alreadyLoaded, |
|
379
|
TResult Function(OndeError_ModelBuild value)? modelBuild, |
|
380
|
TResult Function(OndeError_Inference value)? inference, |
|
381
|
TResult Function(OndeError_Cancelled value)? cancelled, |
|
382
|
TResult Function(OndeError_Other value)? other, |
|
383
|
required TResult orElse(), |
|
384
|
}) { |
|
385
|
if (alreadyLoaded != null) { |
|
386
|
return alreadyLoaded(this); |
|
387
|
} |
|
388
|
return orElse(); |
|
389
|
} |
|
390
|
} |
|
391
|
|
|
392
|
abstract class OndeError_AlreadyLoaded extends OndeError { |
|
393
|
const factory OndeError_AlreadyLoaded({required final String modelName}) = |
|
394
|
_$OndeError_AlreadyLoadedImpl; |
|
395
|
const OndeError_AlreadyLoaded._() : super._(); |
|
396
|
|
|
397
|
String get modelName; |
|
398
|
|
|
399
|
/// Create a copy of OndeError |
|
400
|
/// with the given fields replaced by the non-null parameter values. |
|
401
|
@JsonKey(includeFromJson: false, includeToJson: false) |
|
402
|
_$$OndeError_AlreadyLoadedImplCopyWith<_$OndeError_AlreadyLoadedImpl> |
|
403
|
get copyWith => throw _privateConstructorUsedError; |
|
404
|
} |
|
405
|
|
|
406
|
/// @nodoc |
|
407
|
abstract class _$$OndeError_ModelBuildImplCopyWith<$Res> { |
|
408
|
factory _$$OndeError_ModelBuildImplCopyWith(_$OndeError_ModelBuildImpl value, |
|
409
|
$Res Function(_$OndeError_ModelBuildImpl) then) = |
|
410
|
__$$OndeError_ModelBuildImplCopyWithImpl<$Res>; |
|
411
|
@useResult |
|
412
|
$Res call({String reason}); |
|
413
|
} |
|
414
|
|
|
415
|
/// @nodoc |
|
416
|
class __$$OndeError_ModelBuildImplCopyWithImpl<$Res> |
|
417
|
extends _$OndeErrorCopyWithImpl<$Res, _$OndeError_ModelBuildImpl> |
|
418
|
implements _$$OndeError_ModelBuildImplCopyWith<$Res> { |
|
419
|
__$$OndeError_ModelBuildImplCopyWithImpl(_$OndeError_ModelBuildImpl _value, |
|
420
|
$Res Function(_$OndeError_ModelBuildImpl) _then) |
|
421
|
: super(_value, _then); |
|
422
|
|
|
423
|
/// Create a copy of OndeError |
|
424
|
/// with the given fields replaced by the non-null parameter values. |
|
425
|
@pragma('vm:prefer-inline') |
|
426
|
@override |
|
427
|
$Res call({ |
|
428
|
Object? reason = null, |
|
429
|
}) { |
|
430
|
return _then(_$OndeError_ModelBuildImpl( |
|
431
|
reason: null == reason |
|
432
|
? _value.reason |
|
433
|
: reason // ignore: cast_nullable_to_non_nullable |
|
434
|
as String, |
|
435
|
)); |
|
436
|
} |
|
437
|
} |
|
438
|
|
|
439
|
/// @nodoc |
|
440
|
|
|
441
|
class _$OndeError_ModelBuildImpl extends OndeError_ModelBuild { |
|
442
|
const _$OndeError_ModelBuildImpl({required this.reason}) : super._(); |
|
443
|
|
|
444
|
@override |
|
445
|
final String reason; |
|
446
|
|
|
447
|
@override |
|
448
|
String toString() { |
|
449
|
return 'OndeError.modelBuild(reason: $reason)'; |
|
450
|
} |
|
451
|
|
|
452
|
@override |
|
453
|
bool operator ==(Object other) { |
|
454
|
return identical(this, other) || |
|
455
|
(other.runtimeType == runtimeType && |
|
456
|
other is _$OndeError_ModelBuildImpl && |
|
457
|
(identical(other.reason, reason) || other.reason == reason)); |
|
458
|
} |
|
459
|
|
|
460
|
@override |
|
461
|
int get hashCode => Object.hash(runtimeType, reason); |
|
462
|
|
|
463
|
/// Create a copy of OndeError |
|
464
|
/// with the given fields replaced by the non-null parameter values. |
|
465
|
@JsonKey(includeFromJson: false, includeToJson: false) |
|
466
|
@override |
|
467
|
@pragma('vm:prefer-inline') |
|
468
|
_$$OndeError_ModelBuildImplCopyWith<_$OndeError_ModelBuildImpl> |
|
469
|
get copyWith => |
|
470
|
__$$OndeError_ModelBuildImplCopyWithImpl<_$OndeError_ModelBuildImpl>( |
|
471
|
this, _$identity); |
|
472
|
|
|
473
|
@override |
|
474
|
@optionalTypeArgs |
|
475
|
TResult when<TResult extends Object?>({ |
|
476
|
required TResult Function() noModelLoaded, |
|
477
|
required TResult Function(String modelName) alreadyLoaded, |
|
478
|
required TResult Function(String reason) modelBuild, |
|
479
|
required TResult Function(String reason) inference, |
|
480
|
required TResult Function() cancelled, |
|
481
|
required TResult Function(String reason) other, |
|
482
|
}) { |
|
483
|
return modelBuild(reason); |
|
484
|
} |
|
485
|
|
|
486
|
@override |
|
487
|
@optionalTypeArgs |
|
488
|
TResult? whenOrNull<TResult extends Object?>({ |
|
489
|
TResult? Function()? noModelLoaded, |
|
490
|
TResult? Function(String modelName)? alreadyLoaded, |
|
491
|
TResult? Function(String reason)? modelBuild, |
|
492
|
TResult? Function(String reason)? inference, |
|
493
|
TResult? Function()? cancelled, |
|
494
|
TResult? Function(String reason)? other, |
|
495
|
}) { |
|
496
|
return modelBuild?.call(reason); |
|
497
|
} |
|
498
|
|
|
499
|
@override |
|
500
|
@optionalTypeArgs |
|
501
|
TResult maybeWhen<TResult extends Object?>({ |
|
502
|
TResult Function()? noModelLoaded, |
|
503
|
TResult Function(String modelName)? alreadyLoaded, |
|
504
|
TResult Function(String reason)? modelBuild, |
|
505
|
TResult Function(String reason)? inference, |
|
506
|
TResult Function()? cancelled, |
|
507
|
TResult Function(String reason)? other, |
|
508
|
required TResult orElse(), |
|
509
|
}) { |
|
510
|
if (modelBuild != null) { |
|
511
|
return modelBuild(reason); |
|
512
|
} |
|
513
|
return orElse(); |
|
514
|
} |
|
515
|
|
|
516
|
@override |
|
517
|
@optionalTypeArgs |
|
518
|
TResult map<TResult extends Object?>({ |
|
519
|
required TResult Function(OndeError_NoModelLoaded value) noModelLoaded, |
|
520
|
required TResult Function(OndeError_AlreadyLoaded value) alreadyLoaded, |
|
521
|
required TResult Function(OndeError_ModelBuild value) modelBuild, |
|
522
|
required TResult Function(OndeError_Inference value) inference, |
|
523
|
required TResult Function(OndeError_Cancelled value) cancelled, |
|
524
|
required TResult Function(OndeError_Other value) other, |
|
525
|
}) { |
|
526
|
return modelBuild(this); |
|
527
|
} |
|
528
|
|
|
529
|
@override |
|
530
|
@optionalTypeArgs |
|
531
|
TResult? mapOrNull<TResult extends Object?>({ |
|
532
|
TResult? Function(OndeError_NoModelLoaded value)? noModelLoaded, |
|
533
|
TResult? Function(OndeError_AlreadyLoaded value)? alreadyLoaded, |
|
534
|
TResult? Function(OndeError_ModelBuild value)? modelBuild, |
|
535
|
TResult? Function(OndeError_Inference value)? inference, |
|
536
|
TResult? Function(OndeError_Cancelled value)? cancelled, |
|
537
|
TResult? Function(OndeError_Other value)? other, |
|
538
|
}) { |
|
539
|
return modelBuild?.call(this); |
|
540
|
} |
|
541
|
|
|
542
|
@override |
|
543
|
@optionalTypeArgs |
|
544
|
TResult maybeMap<TResult extends Object?>({ |
|
545
|
TResult Function(OndeError_NoModelLoaded value)? noModelLoaded, |
|
546
|
TResult Function(OndeError_AlreadyLoaded value)? alreadyLoaded, |
|
547
|
TResult Function(OndeError_ModelBuild value)? modelBuild, |
|
548
|
TResult Function(OndeError_Inference value)? inference, |
|
549
|
TResult Function(OndeError_Cancelled value)? cancelled, |
|
550
|
TResult Function(OndeError_Other value)? other, |
|
551
|
required TResult orElse(), |
|
552
|
}) { |
|
553
|
if (modelBuild != null) { |
|
554
|
return modelBuild(this); |
|
555
|
} |
|
556
|
return orElse(); |
|
557
|
} |
|
558
|
} |
|
559
|
|
|
560
|
abstract class OndeError_ModelBuild extends OndeError { |
|
561
|
const factory OndeError_ModelBuild({required final String reason}) = |
|
562
|
_$OndeError_ModelBuildImpl; |
|
563
|
const OndeError_ModelBuild._() : super._(); |
|
564
|
|
|
565
|
String get reason; |
|
566
|
|
|
567
|
/// Create a copy of OndeError |
|
568
|
/// with the given fields replaced by the non-null parameter values. |
|
569
|
@JsonKey(includeFromJson: false, includeToJson: false) |
|
570
|
_$$OndeError_ModelBuildImplCopyWith<_$OndeError_ModelBuildImpl> |
|
571
|
get copyWith => throw _privateConstructorUsedError; |
|
572
|
} |
|
573
|
|
|
574
|
/// @nodoc |
|
575
|
abstract class _$$OndeError_InferenceImplCopyWith<$Res> { |
|
576
|
factory _$$OndeError_InferenceImplCopyWith(_$OndeError_InferenceImpl value, |
|
577
|
$Res Function(_$OndeError_InferenceImpl) then) = |
|
578
|
__$$OndeError_InferenceImplCopyWithImpl<$Res>; |
|
579
|
@useResult |
|
580
|
$Res call({String reason}); |
|
581
|
} |
|
582
|
|
|
583
|
/// @nodoc |
|
584
|
class __$$OndeError_InferenceImplCopyWithImpl<$Res> |
|
585
|
extends _$OndeErrorCopyWithImpl<$Res, _$OndeError_InferenceImpl> |
|
586
|
implements _$$OndeError_InferenceImplCopyWith<$Res> { |
|
587
|
__$$OndeError_InferenceImplCopyWithImpl(_$OndeError_InferenceImpl _value, |
|
588
|
$Res Function(_$OndeError_InferenceImpl) _then) |
|
589
|
: super(_value, _then); |
|
590
|
|
|
591
|
/// Create a copy of OndeError |
|
592
|
/// with the given fields replaced by the non-null parameter values. |
|
593
|
@pragma('vm:prefer-inline') |
|
594
|
@override |
|
595
|
$Res call({ |
|
596
|
Object? reason = null, |
|
597
|
}) { |
|
598
|
return _then(_$OndeError_InferenceImpl( |
|
599
|
reason: null == reason |
|
600
|
? _value.reason |
|
601
|
: reason // ignore: cast_nullable_to_non_nullable |
|
602
|
as String, |
|
603
|
)); |
|
604
|
} |
|
605
|
} |
|
606
|
|
|
607
|
/// @nodoc |
|
608
|
|
|
609
|
class _$OndeError_InferenceImpl extends OndeError_Inference { |
|
610
|
const _$OndeError_InferenceImpl({required this.reason}) : super._(); |
|
611
|
|
|
612
|
@override |
|
613
|
final String reason; |
|
614
|
|
|
615
|
@override |
|
616
|
String toString() { |
|
617
|
return 'OndeError.inference(reason: $reason)'; |
|
618
|
} |
|
619
|
|
|
620
|
@override |
|
621
|
bool operator ==(Object other) { |
|
622
|
return identical(this, other) || |
|
623
|
(other.runtimeType == runtimeType && |
|
624
|
other is _$OndeError_InferenceImpl && |
|
625
|
(identical(other.reason, reason) || other.reason == reason)); |
|
626
|
} |
|
627
|
|
|
628
|
@override |
|
629
|
int get hashCode => Object.hash(runtimeType, reason); |
|
630
|
|
|
631
|
/// Create a copy of OndeError |
|
632
|
/// with the given fields replaced by the non-null parameter values. |
|
633
|
@JsonKey(includeFromJson: false, includeToJson: false) |
|
634
|
@override |
|
635
|
@pragma('vm:prefer-inline') |
|
636
|
_$$OndeError_InferenceImplCopyWith<_$OndeError_InferenceImpl> get copyWith => |
|
637
|
__$$OndeError_InferenceImplCopyWithImpl<_$OndeError_InferenceImpl>( |
|
638
|
this, _$identity); |
|
639
|
|
|
640
|
@override |
|
641
|
@optionalTypeArgs |
|
642
|
TResult when<TResult extends Object?>({ |
|
643
|
required TResult Function() noModelLoaded, |
|
644
|
required TResult Function(String modelName) alreadyLoaded, |
|
645
|
required TResult Function(String reason) modelBuild, |
|
646
|
required TResult Function(String reason) inference, |
|
647
|
required TResult Function() cancelled, |
|
648
|
required TResult Function(String reason) other, |
|
649
|
}) { |
|
650
|
return inference(reason); |
|
651
|
} |
|
652
|
|
|
653
|
@override |
|
654
|
@optionalTypeArgs |
|
655
|
TResult? whenOrNull<TResult extends Object?>({ |
|
656
|
TResult? Function()? noModelLoaded, |
|
657
|
TResult? Function(String modelName)? alreadyLoaded, |
|
658
|
TResult? Function(String reason)? modelBuild, |
|
659
|
TResult? Function(String reason)? inference, |
|
660
|
TResult? Function()? cancelled, |
|
661
|
TResult? Function(String reason)? other, |
|
662
|
}) { |
|
663
|
return inference?.call(reason); |
|
664
|
} |
|
665
|
|
|
666
|
@override |
|
667
|
@optionalTypeArgs |
|
668
|
TResult maybeWhen<TResult extends Object?>({ |
|
669
|
TResult Function()? noModelLoaded, |
|
670
|
TResult Function(String modelName)? alreadyLoaded, |
|
671
|
TResult Function(String reason)? modelBuild, |
|
672
|
TResult Function(String reason)? inference, |
|
673
|
TResult Function()? cancelled, |
|
674
|
TResult Function(String reason)? other, |
|
675
|
required TResult orElse(), |
|
676
|
}) { |
|
677
|
if (inference != null) { |
|
678
|
return inference(reason); |
|
679
|
} |
|
680
|
return orElse(); |
|
681
|
} |
|
682
|
|
|
683
|
@override |
|
684
|
@optionalTypeArgs |
|
685
|
TResult map<TResult extends Object?>({ |
|
686
|
required TResult Function(OndeError_NoModelLoaded value) noModelLoaded, |
|
687
|
required TResult Function(OndeError_AlreadyLoaded value) alreadyLoaded, |
|
688
|
required TResult Function(OndeError_ModelBuild value) modelBuild, |
|
689
|
required TResult Function(OndeError_Inference value) inference, |
|
690
|
required TResult Function(OndeError_Cancelled value) cancelled, |
|
691
|
required TResult Function(OndeError_Other value) other, |
|
692
|
}) { |
|
693
|
return inference(this); |
|
694
|
} |
|
695
|
|
|
696
|
@override |
|
697
|
@optionalTypeArgs |
|
698
|
TResult? mapOrNull<TResult extends Object?>({ |
|
699
|
TResult? Function(OndeError_NoModelLoaded value)? noModelLoaded, |
|
700
|
TResult? Function(OndeError_AlreadyLoaded value)? alreadyLoaded, |
|
701
|
TResult? Function(OndeError_ModelBuild value)? modelBuild, |
|
702
|
TResult? Function(OndeError_Inference value)? inference, |
|
703
|
TResult? Function(OndeError_Cancelled value)? cancelled, |
|
704
|
TResult? Function(OndeError_Other value)? other, |
|
705
|
}) { |
|
706
|
return inference?.call(this); |
|
707
|
} |
|
708
|
|
|
709
|
@override |
|
710
|
@optionalTypeArgs |
|
711
|
TResult maybeMap<TResult extends Object?>({ |
|
712
|
TResult Function(OndeError_NoModelLoaded value)? noModelLoaded, |
|
713
|
TResult Function(OndeError_AlreadyLoaded value)? alreadyLoaded, |
|
714
|
TResult Function(OndeError_ModelBuild value)? modelBuild, |
|
715
|
TResult Function(OndeError_Inference value)? inference, |
|
716
|
TResult Function(OndeError_Cancelled value)? cancelled, |
|
717
|
TResult Function(OndeError_Other value)? other, |
|
718
|
required TResult orElse(), |
|
719
|
}) { |
|
720
|
if (inference != null) { |
|
721
|
return inference(this); |
|
722
|
} |
|
723
|
return orElse(); |
|
724
|
} |
|
725
|
} |
|
726
|
|
|
727
|
abstract class OndeError_Inference extends OndeError { |
|
728
|
const factory OndeError_Inference({required final String reason}) = |
|
729
|
_$OndeError_InferenceImpl; |
|
730
|
const OndeError_Inference._() : super._(); |
|
731
|
|
|
732
|
String get reason; |
|
733
|
|
|
734
|
/// Create a copy of OndeError |
|
735
|
/// with the given fields replaced by the non-null parameter values. |
|
736
|
@JsonKey(includeFromJson: false, includeToJson: false) |
|
737
|
_$$OndeError_InferenceImplCopyWith<_$OndeError_InferenceImpl> get copyWith => |
|
738
|
throw _privateConstructorUsedError; |
|
739
|
} |
|
740
|
|
|
741
|
/// @nodoc |
|
742
|
abstract class _$$OndeError_CancelledImplCopyWith<$Res> { |
|
743
|
factory _$$OndeError_CancelledImplCopyWith(_$OndeError_CancelledImpl value, |
|
744
|
$Res Function(_$OndeError_CancelledImpl) then) = |
|
745
|
__$$OndeError_CancelledImplCopyWithImpl<$Res>; |
|
746
|
} |
|
747
|
|
|
748
|
/// @nodoc |
|
749
|
class __$$OndeError_CancelledImplCopyWithImpl<$Res> |
|
750
|
extends _$OndeErrorCopyWithImpl<$Res, _$OndeError_CancelledImpl> |
|
751
|
implements _$$OndeError_CancelledImplCopyWith<$Res> { |
|
752
|
__$$OndeError_CancelledImplCopyWithImpl(_$OndeError_CancelledImpl _value, |
|
753
|
$Res Function(_$OndeError_CancelledImpl) _then) |
|
754
|
: super(_value, _then); |
|
755
|
|
|
756
|
/// Create a copy of OndeError |
|
757
|
/// with the given fields replaced by the non-null parameter values. |
|
758
|
} |
|
759
|
|
|
760
|
/// @nodoc |
|
761
|
|
|
762
|
class _$OndeError_CancelledImpl extends OndeError_Cancelled { |
|
763
|
const _$OndeError_CancelledImpl() : super._(); |
|
764
|
|
|
765
|
@override |
|
766
|
String toString() { |
|
767
|
return 'OndeError.cancelled()'; |
|
768
|
} |
|
769
|
|
|
770
|
@override |
|
771
|
bool operator ==(Object other) { |
|
772
|
return identical(this, other) || |
|
773
|
(other.runtimeType == runtimeType && |
|
774
|
other is _$OndeError_CancelledImpl); |
|
775
|
} |
|
776
|
|
|
777
|
@override |
|
778
|
int get hashCode => runtimeType.hashCode; |
|
779
|
|
|
780
|
@override |
|
781
|
@optionalTypeArgs |
|
782
|
TResult when<TResult extends Object?>({ |
|
783
|
required TResult Function() noModelLoaded, |
|
784
|
required TResult Function(String modelName) alreadyLoaded, |
|
785
|
required TResult Function(String reason) modelBuild, |
|
786
|
required TResult Function(String reason) inference, |
|
787
|
required TResult Function() cancelled, |
|
788
|
required TResult Function(String reason) other, |
|
789
|
}) { |
|
790
|
return cancelled(); |
|
791
|
} |
|
792
|
|
|
793
|
@override |
|
794
|
@optionalTypeArgs |
|
795
|
TResult? whenOrNull<TResult extends Object?>({ |
|
796
|
TResult? Function()? noModelLoaded, |
|
797
|
TResult? Function(String modelName)? alreadyLoaded, |
|
798
|
TResult? Function(String reason)? modelBuild, |
|
799
|
TResult? Function(String reason)? inference, |
|
800
|
TResult? Function()? cancelled, |
|
801
|
TResult? Function(String reason)? other, |
|
802
|
}) { |
|
803
|
return cancelled?.call(); |
|
804
|
} |
|
805
|
|
|
806
|
@override |
|
807
|
@optionalTypeArgs |
|
808
|
TResult maybeWhen<TResult extends Object?>({ |
|
809
|
TResult Function()? noModelLoaded, |
|
810
|
TResult Function(String modelName)? alreadyLoaded, |
|
811
|
TResult Function(String reason)? modelBuild, |
|
812
|
TResult Function(String reason)? inference, |
|
813
|
TResult Function()? cancelled, |
|
814
|
TResult Function(String reason)? other, |
|
815
|
required TResult orElse(), |
|
816
|
}) { |
|
817
|
if (cancelled != null) { |
|
818
|
return cancelled(); |
|
819
|
} |
|
820
|
return orElse(); |
|
821
|
} |
|
822
|
|
|
823
|
@override |
|
824
|
@optionalTypeArgs |
|
825
|
TResult map<TResult extends Object?>({ |
|
826
|
required TResult Function(OndeError_NoModelLoaded value) noModelLoaded, |
|
827
|
required TResult Function(OndeError_AlreadyLoaded value) alreadyLoaded, |
|
828
|
required TResult Function(OndeError_ModelBuild value) modelBuild, |
|
829
|
required TResult Function(OndeError_Inference value) inference, |
|
830
|
required TResult Function(OndeError_Cancelled value) cancelled, |
|
831
|
required TResult Function(OndeError_Other value) other, |
|
832
|
}) { |
|
833
|
return cancelled(this); |
|
834
|
} |
|
835
|
|
|
836
|
@override |
|
837
|
@optionalTypeArgs |
|
838
|
TResult? mapOrNull<TResult extends Object?>({ |
|
839
|
TResult? Function(OndeError_NoModelLoaded value)? noModelLoaded, |
|
840
|
TResult? Function(OndeError_AlreadyLoaded value)? alreadyLoaded, |
|
841
|
TResult? Function(OndeError_ModelBuild value)? modelBuild, |
|
842
|
TResult? Function(OndeError_Inference value)? inference, |
|
843
|
TResult? Function(OndeError_Cancelled value)? cancelled, |
|
844
|
TResult? Function(OndeError_Other value)? other, |
|
845
|
}) { |
|
846
|
return cancelled?.call(this); |
|
847
|
} |
|
848
|
|
|
849
|
@override |
|
850
|
@optionalTypeArgs |
|
851
|
TResult maybeMap<TResult extends Object?>({ |
|
852
|
TResult Function(OndeError_NoModelLoaded value)? noModelLoaded, |
|
853
|
TResult Function(OndeError_AlreadyLoaded value)? alreadyLoaded, |
|
854
|
TResult Function(OndeError_ModelBuild value)? modelBuild, |
|
855
|
TResult Function(OndeError_Inference value)? inference, |
|
856
|
TResult Function(OndeError_Cancelled value)? cancelled, |
|
857
|
TResult Function(OndeError_Other value)? other, |
|
858
|
required TResult orElse(), |
|
859
|
}) { |
|
860
|
if (cancelled != null) { |
|
861
|
return cancelled(this); |
|
862
|
} |
|
863
|
return orElse(); |
|
864
|
} |
|
865
|
} |
|
866
|
|
|
867
|
abstract class OndeError_Cancelled extends OndeError { |
|
868
|
const factory OndeError_Cancelled() = _$OndeError_CancelledImpl; |
|
869
|
const OndeError_Cancelled._() : super._(); |
|
870
|
} |
|
871
|
|
|
872
|
/// @nodoc |
|
873
|
abstract class _$$OndeError_OtherImplCopyWith<$Res> { |
|
874
|
factory _$$OndeError_OtherImplCopyWith(_$OndeError_OtherImpl value, |
|
875
|
$Res Function(_$OndeError_OtherImpl) then) = |
|
876
|
__$$OndeError_OtherImplCopyWithImpl<$Res>; |
|
877
|
@useResult |
|
878
|
$Res call({String reason}); |
|
879
|
} |
|
880
|
|
|
881
|
/// @nodoc |
|
882
|
class __$$OndeError_OtherImplCopyWithImpl<$Res> |
|
883
|
extends _$OndeErrorCopyWithImpl<$Res, _$OndeError_OtherImpl> |
|
884
|
implements _$$OndeError_OtherImplCopyWith<$Res> { |
|
885
|
__$$OndeError_OtherImplCopyWithImpl( |
|
886
|
_$OndeError_OtherImpl _value, $Res Function(_$OndeError_OtherImpl) _then) |
|
887
|
: super(_value, _then); |
|
888
|
|
|
889
|
/// Create a copy of OndeError |
|
890
|
/// with the given fields replaced by the non-null parameter values. |
|
891
|
@pragma('vm:prefer-inline') |
|
892
|
@override |
|
893
|
$Res call({ |
|
894
|
Object? reason = null, |
|
895
|
}) { |
|
896
|
return _then(_$OndeError_OtherImpl( |
|
897
|
reason: null == reason |
|
898
|
? _value.reason |
|
899
|
: reason // ignore: cast_nullable_to_non_nullable |
|
900
|
as String, |
|
901
|
)); |
|
902
|
} |
|
903
|
} |
|
904
|
|
|
905
|
/// @nodoc |
|
906
|
|
|
907
|
class _$OndeError_OtherImpl extends OndeError_Other { |
|
908
|
const _$OndeError_OtherImpl({required this.reason}) : super._(); |
|
909
|
|
|
910
|
@override |
|
911
|
final String reason; |
|
912
|
|
|
913
|
@override |
|
914
|
String toString() { |
|
915
|
return 'OndeError.other(reason: $reason)'; |
|
916
|
} |
|
917
|
|
|
918
|
@override |
|
919
|
bool operator ==(Object other) { |
|
920
|
return identical(this, other) || |
|
921
|
(other.runtimeType == runtimeType && |
|
922
|
other is _$OndeError_OtherImpl && |
|
923
|
(identical(other.reason, reason) || other.reason == reason)); |
|
924
|
} |
|
925
|
|
|
926
|
@override |
|
927
|
int get hashCode => Object.hash(runtimeType, reason); |
|
928
|
|
|
929
|
/// Create a copy of OndeError |
|
930
|
/// with the given fields replaced by the non-null parameter values. |
|
931
|
@JsonKey(includeFromJson: false, includeToJson: false) |
|
932
|
@override |
|
933
|
@pragma('vm:prefer-inline') |
|
934
|
_$$OndeError_OtherImplCopyWith<_$OndeError_OtherImpl> get copyWith => |
|
935
|
__$$OndeError_OtherImplCopyWithImpl<_$OndeError_OtherImpl>( |
|
936
|
this, _$identity); |
|
937
|
|
|
938
|
@override |
|
939
|
@optionalTypeArgs |
|
940
|
TResult when<TResult extends Object?>({ |
|
941
|
required TResult Function() noModelLoaded, |
|
942
|
required TResult Function(String modelName) alreadyLoaded, |
|
943
|
required TResult Function(String reason) modelBuild, |
|
944
|
required TResult Function(String reason) inference, |
|
945
|
required TResult Function() cancelled, |
|
946
|
required TResult Function(String reason) other, |
|
947
|
}) { |
|
948
|
return other(reason); |
|
949
|
} |
|
950
|
|
|
951
|
@override |
|
952
|
@optionalTypeArgs |
|
953
|
TResult? whenOrNull<TResult extends Object?>({ |
|
954
|
TResult? Function()? noModelLoaded, |
|
955
|
TResult? Function(String modelName)? alreadyLoaded, |
|
956
|
TResult? Function(String reason)? modelBuild, |
|
957
|
TResult? Function(String reason)? inference, |
|
958
|
TResult? Function()? cancelled, |
|
959
|
TResult? Function(String reason)? other, |
|
960
|
}) { |
|
961
|
return other?.call(reason); |
|
962
|
} |
|
963
|
|
|
964
|
@override |
|
965
|
@optionalTypeArgs |
|
966
|
TResult maybeWhen<TResult extends Object?>({ |
|
967
|
TResult Function()? noModelLoaded, |
|
968
|
TResult Function(String modelName)? alreadyLoaded, |
|
969
|
TResult Function(String reason)? modelBuild, |
|
970
|
TResult Function(String reason)? inference, |
|
971
|
TResult Function()? cancelled, |
|
972
|
TResult Function(String reason)? other, |
|
973
|
required TResult orElse(), |
|
974
|
}) { |
|
975
|
if (other != null) { |
|
976
|
return other(reason); |
|
977
|
} |
|
978
|
return orElse(); |
|
979
|
} |
|
980
|
|
|
981
|
@override |
|
982
|
@optionalTypeArgs |
|
983
|
TResult map<TResult extends Object?>({ |
|
984
|
required TResult Function(OndeError_NoModelLoaded value) noModelLoaded, |
|
985
|
required TResult Function(OndeError_AlreadyLoaded value) alreadyLoaded, |
|
986
|
required TResult Function(OndeError_ModelBuild value) modelBuild, |
|
987
|
required TResult Function(OndeError_Inference value) inference, |
|
988
|
required TResult Function(OndeError_Cancelled value) cancelled, |
|
989
|
required TResult Function(OndeError_Other value) other, |
|
990
|
}) { |
|
991
|
return other(this); |
|
992
|
} |
|
993
|
|
|
994
|
@override |
|
995
|
@optionalTypeArgs |
|
996
|
TResult? mapOrNull<TResult extends Object?>({ |
|
997
|
TResult? Function(OndeError_NoModelLoaded value)? noModelLoaded, |
|
998
|
TResult? Function(OndeError_AlreadyLoaded value)? alreadyLoaded, |
|
999
|
TResult? Function(OndeError_ModelBuild value)? modelBuild, |
|
1000
|
TResult? Function(OndeError_Inference value)? inference, |
|
1001
|
TResult? Function(OndeError_Cancelled value)? cancelled, |
|
1002
|
TResult? Function(OndeError_Other value)? other, |
|
1003
|
}) { |
|
1004
|
return other?.call(this); |
|
1005
|
} |
|
1006
|
|
|
1007
|
@override |
|
1008
|
@optionalTypeArgs |
|
1009
|
TResult maybeMap<TResult extends Object?>({ |
|
1010
|
TResult Function(OndeError_NoModelLoaded value)? noModelLoaded, |
|
1011
|
TResult Function(OndeError_AlreadyLoaded value)? alreadyLoaded, |
|
1012
|
TResult Function(OndeError_ModelBuild value)? modelBuild, |
|
1013
|
TResult Function(OndeError_Inference value)? inference, |
|
1014
|
TResult Function(OndeError_Cancelled value)? cancelled, |
|
1015
|
TResult Function(OndeError_Other value)? other, |
|
1016
|
required TResult orElse(), |
|
1017
|
}) { |
|
1018
|
if (other != null) { |
|
1019
|
return other(this); |
|
1020
|
} |
|
1021
|
return orElse(); |
|
1022
|
} |
|
1023
|
} |
|
1024
|
|
|
1025
|
abstract class OndeError_Other extends OndeError { |
|
1026
|
const factory OndeError_Other({required final String reason}) = |
|
1027
|
_$OndeError_OtherImpl; |
|
1028
|
const OndeError_Other._() : super._(); |
|
1029
|
|
|
1030
|
String get reason; |
|
1031
|
|
|
1032
|
/// Create a copy of OndeError |
|
1033
|
/// with the given fields replaced by the non-null parameter values. |
|
1034
|
@JsonKey(includeFromJson: false, includeToJson: false) |
|
1035
|
_$$OndeError_OtherImplCopyWith<_$OndeError_OtherImpl> get copyWith => |
|
1036
|
throw _privateConstructorUsedError; |
|
1037
|
} |