youtube_explode/lib/src/common/thumbnail.freezed.dart

195 lines
5.4 KiB
Dart

// coverage:ignore-file
// GENERATED CODE - DO NOT MODIFY BY HAND
// 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
part of 'thumbnail.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 informations: https://github.com/rrousselGit/freezed#custom-getters-and-methods');
/// @nodoc
class _$ThumbnailTearOff {
const _$ThumbnailTearOff();
_Thumbnail call(Uri url, int height, int width) {
return _Thumbnail(
url,
height,
width,
);
}
}
/// @nodoc
const $Thumbnail = _$ThumbnailTearOff();
/// @nodoc
mixin _$Thumbnail {
/// Image url.
Uri get url => throw _privateConstructorUsedError;
/// Image height.
int get height => throw _privateConstructorUsedError;
/// Image width.
int get width => throw _privateConstructorUsedError;
@JsonKey(ignore: true)
$ThumbnailCopyWith<Thumbnail> get copyWith =>
throw _privateConstructorUsedError;
}
/// @nodoc
abstract class $ThumbnailCopyWith<$Res> {
factory $ThumbnailCopyWith(Thumbnail value, $Res Function(Thumbnail) then) =
_$ThumbnailCopyWithImpl<$Res>;
$Res call({Uri url, int height, int width});
}
/// @nodoc
class _$ThumbnailCopyWithImpl<$Res> implements $ThumbnailCopyWith<$Res> {
_$ThumbnailCopyWithImpl(this._value, this._then);
final Thumbnail _value;
// ignore: unused_field
final $Res Function(Thumbnail) _then;
@override
$Res call({
Object? url = freezed,
Object? height = freezed,
Object? width = freezed,
}) {
return _then(_value.copyWith(
url: url == freezed
? _value.url
: url // ignore: cast_nullable_to_non_nullable
as Uri,
height: height == freezed
? _value.height
: height // ignore: cast_nullable_to_non_nullable
as int,
width: width == freezed
? _value.width
: width // ignore: cast_nullable_to_non_nullable
as int,
));
}
}
/// @nodoc
abstract class _$ThumbnailCopyWith<$Res> implements $ThumbnailCopyWith<$Res> {
factory _$ThumbnailCopyWith(
_Thumbnail value, $Res Function(_Thumbnail) then) =
__$ThumbnailCopyWithImpl<$Res>;
@override
$Res call({Uri url, int height, int width});
}
/// @nodoc
class __$ThumbnailCopyWithImpl<$Res> extends _$ThumbnailCopyWithImpl<$Res>
implements _$ThumbnailCopyWith<$Res> {
__$ThumbnailCopyWithImpl(_Thumbnail _value, $Res Function(_Thumbnail) _then)
: super(_value, (v) => _then(v as _Thumbnail));
@override
_Thumbnail get _value => super._value as _Thumbnail;
@override
$Res call({
Object? url = freezed,
Object? height = freezed,
Object? width = freezed,
}) {
return _then(_Thumbnail(
url == freezed
? _value.url
: url // ignore: cast_nullable_to_non_nullable
as Uri,
height == freezed
? _value.height
: height // ignore: cast_nullable_to_non_nullable
as int,
width == freezed
? _value.width
: width // ignore: cast_nullable_to_non_nullable
as int,
));
}
}
/// @nodoc
class _$_Thumbnail implements _Thumbnail {
const _$_Thumbnail(this.url, this.height, this.width);
@override
/// Image url.
final Uri url;
@override
/// Image height.
final int height;
@override
/// Image width.
final int width;
@override
String toString() {
return 'Thumbnail(url: $url, height: $height, width: $width)';
}
@override
bool operator ==(dynamic other) {
return identical(this, other) ||
(other is _Thumbnail &&
(identical(other.url, url) ||
const DeepCollectionEquality().equals(other.url, url)) &&
(identical(other.height, height) ||
const DeepCollectionEquality().equals(other.height, height)) &&
(identical(other.width, width) ||
const DeepCollectionEquality().equals(other.width, width)));
}
@override
int get hashCode =>
runtimeType.hashCode ^
const DeepCollectionEquality().hash(url) ^
const DeepCollectionEquality().hash(height) ^
const DeepCollectionEquality().hash(width);
@JsonKey(ignore: true)
@override
_$ThumbnailCopyWith<_Thumbnail> get copyWith =>
__$ThumbnailCopyWithImpl<_Thumbnail>(this, _$identity);
}
abstract class _Thumbnail implements Thumbnail {
const factory _Thumbnail(Uri url, int height, int width) = _$_Thumbnail;
@override
/// Image url.
Uri get url => throw _privateConstructorUsedError;
@override
/// Image height.
int get height => throw _privateConstructorUsedError;
@override
/// Image width.
int get width => throw _privateConstructorUsedError;
@override
@JsonKey(ignore: true)
_$ThumbnailCopyWith<_Thumbnail> get copyWith =>
throw _privateConstructorUsedError;
}