211 lines
6.6 KiB
Dart
211 lines
6.6 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 'language.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 _$Language {
|
||
|
|
Locale get locale => throw _privateConstructorUsedError;
|
||
|
|
String get name => throw _privateConstructorUsedError;
|
||
|
|
String get nativeName => throw _privateConstructorUsedError;
|
||
|
|
String get path => throw _privateConstructorUsedError;
|
||
|
|
|
||
|
|
/// Create a copy of Language
|
||
|
|
/// with the given fields replaced by the non-null parameter values.
|
||
|
|
@JsonKey(includeFromJson: false, includeToJson: false)
|
||
|
|
$LanguageCopyWith<Language> get copyWith =>
|
||
|
|
throw _privateConstructorUsedError;
|
||
|
|
}
|
||
|
|
|
||
|
|
/// @nodoc
|
||
|
|
abstract class $LanguageCopyWith<$Res> {
|
||
|
|
factory $LanguageCopyWith(Language value, $Res Function(Language) then) =
|
||
|
|
_$LanguageCopyWithImpl<$Res, Language>;
|
||
|
|
@useResult
|
||
|
|
$Res call({Locale locale, String name, String nativeName, String path});
|
||
|
|
}
|
||
|
|
|
||
|
|
/// @nodoc
|
||
|
|
class _$LanguageCopyWithImpl<$Res, $Val extends Language>
|
||
|
|
implements $LanguageCopyWith<$Res> {
|
||
|
|
_$LanguageCopyWithImpl(this._value, this._then);
|
||
|
|
|
||
|
|
// ignore: unused_field
|
||
|
|
final $Val _value;
|
||
|
|
// ignore: unused_field
|
||
|
|
final $Res Function($Val) _then;
|
||
|
|
|
||
|
|
/// Create a copy of Language
|
||
|
|
/// with the given fields replaced by the non-null parameter values.
|
||
|
|
@pragma('vm:prefer-inline')
|
||
|
|
@override
|
||
|
|
$Res call({
|
||
|
|
Object? locale = null,
|
||
|
|
Object? name = null,
|
||
|
|
Object? nativeName = null,
|
||
|
|
Object? path = null,
|
||
|
|
}) {
|
||
|
|
return _then(
|
||
|
|
_value.copyWith(
|
||
|
|
locale: null == locale
|
||
|
|
? _value.locale
|
||
|
|
: locale // ignore: cast_nullable_to_non_nullable
|
||
|
|
as Locale,
|
||
|
|
name: null == name
|
||
|
|
? _value.name
|
||
|
|
: name // ignore: cast_nullable_to_non_nullable
|
||
|
|
as String,
|
||
|
|
nativeName: null == nativeName
|
||
|
|
? _value.nativeName
|
||
|
|
: nativeName // ignore: cast_nullable_to_non_nullable
|
||
|
|
as String,
|
||
|
|
path: null == path
|
||
|
|
? _value.path
|
||
|
|
: path // ignore: cast_nullable_to_non_nullable
|
||
|
|
as String,
|
||
|
|
)
|
||
|
|
as $Val,
|
||
|
|
);
|
||
|
|
}
|
||
|
|
}
|
||
|
|
|
||
|
|
/// @nodoc
|
||
|
|
abstract class _$$LanguageImplCopyWith<$Res>
|
||
|
|
implements $LanguageCopyWith<$Res> {
|
||
|
|
factory _$$LanguageImplCopyWith(
|
||
|
|
_$LanguageImpl value,
|
||
|
|
$Res Function(_$LanguageImpl) then,
|
||
|
|
) = __$$LanguageImplCopyWithImpl<$Res>;
|
||
|
|
@override
|
||
|
|
@useResult
|
||
|
|
$Res call({Locale locale, String name, String nativeName, String path});
|
||
|
|
}
|
||
|
|
|
||
|
|
/// @nodoc
|
||
|
|
class __$$LanguageImplCopyWithImpl<$Res>
|
||
|
|
extends _$LanguageCopyWithImpl<$Res, _$LanguageImpl>
|
||
|
|
implements _$$LanguageImplCopyWith<$Res> {
|
||
|
|
__$$LanguageImplCopyWithImpl(
|
||
|
|
_$LanguageImpl _value,
|
||
|
|
$Res Function(_$LanguageImpl) _then,
|
||
|
|
) : super(_value, _then);
|
||
|
|
|
||
|
|
/// Create a copy of Language
|
||
|
|
/// with the given fields replaced by the non-null parameter values.
|
||
|
|
@pragma('vm:prefer-inline')
|
||
|
|
@override
|
||
|
|
$Res call({
|
||
|
|
Object? locale = null,
|
||
|
|
Object? name = null,
|
||
|
|
Object? nativeName = null,
|
||
|
|
Object? path = null,
|
||
|
|
}) {
|
||
|
|
return _then(
|
||
|
|
_$LanguageImpl(
|
||
|
|
locale: null == locale
|
||
|
|
? _value.locale
|
||
|
|
: locale // ignore: cast_nullable_to_non_nullable
|
||
|
|
as Locale,
|
||
|
|
name: null == name
|
||
|
|
? _value.name
|
||
|
|
: name // ignore: cast_nullable_to_non_nullable
|
||
|
|
as String,
|
||
|
|
nativeName: null == nativeName
|
||
|
|
? _value.nativeName
|
||
|
|
: nativeName // ignore: cast_nullable_to_non_nullable
|
||
|
|
as String,
|
||
|
|
path: null == path
|
||
|
|
? _value.path
|
||
|
|
: path // ignore: cast_nullable_to_non_nullable
|
||
|
|
as String,
|
||
|
|
),
|
||
|
|
);
|
||
|
|
}
|
||
|
|
}
|
||
|
|
|
||
|
|
/// @nodoc
|
||
|
|
|
||
|
|
class _$LanguageImpl extends _Language {
|
||
|
|
_$LanguageImpl({
|
||
|
|
required this.locale,
|
||
|
|
required this.name,
|
||
|
|
required this.nativeName,
|
||
|
|
required this.path,
|
||
|
|
}) : super._();
|
||
|
|
|
||
|
|
@override
|
||
|
|
final Locale locale;
|
||
|
|
@override
|
||
|
|
final String name;
|
||
|
|
@override
|
||
|
|
final String nativeName;
|
||
|
|
@override
|
||
|
|
final String path;
|
||
|
|
|
||
|
|
@override
|
||
|
|
String toString() {
|
||
|
|
return 'Language(locale: $locale, name: $name, nativeName: $nativeName, path: $path)';
|
||
|
|
}
|
||
|
|
|
||
|
|
@override
|
||
|
|
bool operator ==(Object other) {
|
||
|
|
return identical(this, other) ||
|
||
|
|
(other.runtimeType == runtimeType &&
|
||
|
|
other is _$LanguageImpl &&
|
||
|
|
(identical(other.locale, locale) || other.locale == locale) &&
|
||
|
|
(identical(other.name, name) || other.name == name) &&
|
||
|
|
(identical(other.nativeName, nativeName) ||
|
||
|
|
other.nativeName == nativeName) &&
|
||
|
|
(identical(other.path, path) || other.path == path));
|
||
|
|
}
|
||
|
|
|
||
|
|
@override
|
||
|
|
int get hashCode => Object.hash(runtimeType, locale, name, nativeName, path);
|
||
|
|
|
||
|
|
/// Create a copy of Language
|
||
|
|
/// with the given fields replaced by the non-null parameter values.
|
||
|
|
@JsonKey(includeFromJson: false, includeToJson: false)
|
||
|
|
@override
|
||
|
|
@pragma('vm:prefer-inline')
|
||
|
|
_$$LanguageImplCopyWith<_$LanguageImpl> get copyWith =>
|
||
|
|
__$$LanguageImplCopyWithImpl<_$LanguageImpl>(this, _$identity);
|
||
|
|
}
|
||
|
|
|
||
|
|
abstract class _Language extends Language {
|
||
|
|
factory _Language({
|
||
|
|
required final Locale locale,
|
||
|
|
required final String name,
|
||
|
|
required final String nativeName,
|
||
|
|
required final String path,
|
||
|
|
}) = _$LanguageImpl;
|
||
|
|
_Language._() : super._();
|
||
|
|
|
||
|
|
@override
|
||
|
|
Locale get locale;
|
||
|
|
@override
|
||
|
|
String get name;
|
||
|
|
@override
|
||
|
|
String get nativeName;
|
||
|
|
@override
|
||
|
|
String get path;
|
||
|
|
|
||
|
|
/// Create a copy of Language
|
||
|
|
/// with the given fields replaced by the non-null parameter values.
|
||
|
|
@override
|
||
|
|
@JsonKey(includeFromJson: false, includeToJson: false)
|
||
|
|
_$$LanguageImplCopyWith<_$LanguageImpl> get copyWith =>
|
||
|
|
throw _privateConstructorUsedError;
|
||
|
|
}
|