Files
trainhub-flutter/lib/presentation/analysis/analysis_state.freezed.dart
Kazimierz Ciołek 782986a632 Initial commit
2026-02-19 02:49:29 +01:00

245 lines
8.1 KiB
Dart

// coverage:ignore-file
// GENERATED CODE - DO NOT MODIFY BY HAND
// ignore_for_file: type=lint
// 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
part of 'analysis_state.dart';
// **************************************************************************
// FreezedGenerator
// **************************************************************************
T _$identity<T>(T value) => value;
final _privateConstructorUsedError = UnsupportedError(
'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',
);
/// @nodoc
mixin _$AnalysisState {
List<AnalysisSessionEntity> get sessions =>
throw _privateConstructorUsedError;
AnalysisSessionEntity? get activeSession =>
throw _privateConstructorUsedError;
List<AnnotationEntity> get annotations => throw _privateConstructorUsedError;
/// Create a copy of AnalysisState
/// with the given fields replaced by the non-null parameter values.
@JsonKey(includeFromJson: false, includeToJson: false)
$AnalysisStateCopyWith<AnalysisState> get copyWith =>
throw _privateConstructorUsedError;
}
/// @nodoc
abstract class $AnalysisStateCopyWith<$Res> {
factory $AnalysisStateCopyWith(
AnalysisState value,
$Res Function(AnalysisState) then,
) = _$AnalysisStateCopyWithImpl<$Res, AnalysisState>;
@useResult
$Res call({
List<AnalysisSessionEntity> sessions,
AnalysisSessionEntity? activeSession,
List<AnnotationEntity> annotations,
});
$AnalysisSessionEntityCopyWith<$Res>? get activeSession;
}
/// @nodoc
class _$AnalysisStateCopyWithImpl<$Res, $Val extends AnalysisState>
implements $AnalysisStateCopyWith<$Res> {
_$AnalysisStateCopyWithImpl(this._value, this._then);
// ignore: unused_field
final $Val _value;
// ignore: unused_field
final $Res Function($Val) _then;
/// Create a copy of AnalysisState
/// with the given fields replaced by the non-null parameter values.
@pragma('vm:prefer-inline')
@override
$Res call({
Object? sessions = null,
Object? activeSession = freezed,
Object? annotations = null,
}) {
return _then(
_value.copyWith(
sessions: null == sessions
? _value.sessions
: sessions // ignore: cast_nullable_to_non_nullable
as List<AnalysisSessionEntity>,
activeSession: freezed == activeSession
? _value.activeSession
: activeSession // ignore: cast_nullable_to_non_nullable
as AnalysisSessionEntity?,
annotations: null == annotations
? _value.annotations
: annotations // ignore: cast_nullable_to_non_nullable
as List<AnnotationEntity>,
)
as $Val,
);
}
/// Create a copy of AnalysisState
/// with the given fields replaced by the non-null parameter values.
@override
@pragma('vm:prefer-inline')
$AnalysisSessionEntityCopyWith<$Res>? get activeSession {
if (_value.activeSession == null) {
return null;
}
return $AnalysisSessionEntityCopyWith<$Res>(_value.activeSession!, (value) {
return _then(_value.copyWith(activeSession: value) as $Val);
});
}
}
/// @nodoc
abstract class _$$AnalysisStateImplCopyWith<$Res>
implements $AnalysisStateCopyWith<$Res> {
factory _$$AnalysisStateImplCopyWith(
_$AnalysisStateImpl value,
$Res Function(_$AnalysisStateImpl) then,
) = __$$AnalysisStateImplCopyWithImpl<$Res>;
@override
@useResult
$Res call({
List<AnalysisSessionEntity> sessions,
AnalysisSessionEntity? activeSession,
List<AnnotationEntity> annotations,
});
@override
$AnalysisSessionEntityCopyWith<$Res>? get activeSession;
}
/// @nodoc
class __$$AnalysisStateImplCopyWithImpl<$Res>
extends _$AnalysisStateCopyWithImpl<$Res, _$AnalysisStateImpl>
implements _$$AnalysisStateImplCopyWith<$Res> {
__$$AnalysisStateImplCopyWithImpl(
_$AnalysisStateImpl _value,
$Res Function(_$AnalysisStateImpl) _then,
) : super(_value, _then);
/// Create a copy of AnalysisState
/// with the given fields replaced by the non-null parameter values.
@pragma('vm:prefer-inline')
@override
$Res call({
Object? sessions = null,
Object? activeSession = freezed,
Object? annotations = null,
}) {
return _then(
_$AnalysisStateImpl(
sessions: null == sessions
? _value._sessions
: sessions // ignore: cast_nullable_to_non_nullable
as List<AnalysisSessionEntity>,
activeSession: freezed == activeSession
? _value.activeSession
: activeSession // ignore: cast_nullable_to_non_nullable
as AnalysisSessionEntity?,
annotations: null == annotations
? _value._annotations
: annotations // ignore: cast_nullable_to_non_nullable
as List<AnnotationEntity>,
),
);
}
}
/// @nodoc
class _$AnalysisStateImpl implements _AnalysisState {
const _$AnalysisStateImpl({
final List<AnalysisSessionEntity> sessions = const [],
this.activeSession,
final List<AnnotationEntity> annotations = const [],
}) : _sessions = sessions,
_annotations = annotations;
final List<AnalysisSessionEntity> _sessions;
@override
@JsonKey()
List<AnalysisSessionEntity> get sessions {
if (_sessions is EqualUnmodifiableListView) return _sessions;
// ignore: implicit_dynamic_type
return EqualUnmodifiableListView(_sessions);
}
@override
final AnalysisSessionEntity? activeSession;
final List<AnnotationEntity> _annotations;
@override
@JsonKey()
List<AnnotationEntity> get annotations {
if (_annotations is EqualUnmodifiableListView) return _annotations;
// ignore: implicit_dynamic_type
return EqualUnmodifiableListView(_annotations);
}
@override
String toString() {
return 'AnalysisState(sessions: $sessions, activeSession: $activeSession, annotations: $annotations)';
}
@override
bool operator ==(Object other) {
return identical(this, other) ||
(other.runtimeType == runtimeType &&
other is _$AnalysisStateImpl &&
const DeepCollectionEquality().equals(other._sessions, _sessions) &&
(identical(other.activeSession, activeSession) ||
other.activeSession == activeSession) &&
const DeepCollectionEquality().equals(
other._annotations,
_annotations,
));
}
@override
int get hashCode => Object.hash(
runtimeType,
const DeepCollectionEquality().hash(_sessions),
activeSession,
const DeepCollectionEquality().hash(_annotations),
);
/// Create a copy of AnalysisState
/// with the given fields replaced by the non-null parameter values.
@JsonKey(includeFromJson: false, includeToJson: false)
@override
@pragma('vm:prefer-inline')
_$$AnalysisStateImplCopyWith<_$AnalysisStateImpl> get copyWith =>
__$$AnalysisStateImplCopyWithImpl<_$AnalysisStateImpl>(this, _$identity);
}
abstract class _AnalysisState implements AnalysisState {
const factory _AnalysisState({
final List<AnalysisSessionEntity> sessions,
final AnalysisSessionEntity? activeSession,
final List<AnnotationEntity> annotations,
}) = _$AnalysisStateImpl;
@override
List<AnalysisSessionEntity> get sessions;
@override
AnalysisSessionEntity? get activeSession;
@override
List<AnnotationEntity> get annotations;
/// Create a copy of AnalysisState
/// with the given fields replaced by the non-null parameter values.
@override
@JsonKey(includeFromJson: false, includeToJson: false)
_$$AnalysisStateImplCopyWith<_$AnalysisStateImpl> get copyWith =>
throw _privateConstructorUsedError;
}