Last active
December 17, 2022 01:24
-
-
Save akeybako/322eee51a196fbbfb273db69df655209 to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
// 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 'sample.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#custom-getters-and-methods'); | |
/// @nodoc | |
mixin _$Feed { | |
int get id => throw _privateConstructorUsedError; | |
String get content => throw _privateConstructorUsedError; | |
@JsonKey(ignore: true) | |
$FeedCopyWith<Feed> get copyWith => throw _privateConstructorUsedError; | |
} | |
/// @nodoc | |
abstract class $FeedCopyWith<$Res> { | |
factory $FeedCopyWith(Feed value, $Res Function(Feed) then) = | |
_$FeedCopyWithImpl<$Res, Feed>; | |
@useResult | |
$Res call({int id, String content}); | |
} | |
/// @nodoc | |
class _$FeedCopyWithImpl<$Res, $Val extends Feed> | |
implements $FeedCopyWith<$Res> { | |
_$FeedCopyWithImpl(this._value, this._then); | |
// ignore: unused_field | |
final $Val _value; | |
// ignore: unused_field | |
final $Res Function($Val) _then; | |
@pragma('vm:prefer-inline') | |
@override | |
$Res call({ | |
Object? id = null, | |
Object? content = null, | |
}) { | |
return _then(_value.copyWith( | |
id: null == id | |
? _value.id | |
: id // ignore: cast_nullable_to_non_nullable | |
as int, | |
content: null == content | |
? _value.content | |
: content // ignore: cast_nullable_to_non_nullable | |
as String, | |
) as $Val); | |
} | |
} | |
/// @nodoc | |
abstract class _$$_FeedCopyWith<$Res> implements $FeedCopyWith<$Res> { | |
factory _$$_FeedCopyWith(_$_Feed value, $Res Function(_$_Feed) then) = | |
__$$_FeedCopyWithImpl<$Res>; | |
@override | |
@useResult | |
$Res call({int id, String content}); | |
} | |
/// @nodoc | |
class __$$_FeedCopyWithImpl<$Res> extends _$FeedCopyWithImpl<$Res, _$_Feed> | |
implements _$$_FeedCopyWith<$Res> { | |
__$$_FeedCopyWithImpl(_$_Feed _value, $Res Function(_$_Feed) _then) | |
: super(_value, _then); | |
@pragma('vm:prefer-inline') | |
@override | |
$Res call({ | |
Object? id = null, | |
Object? content = null, | |
}) { | |
return _then(_$_Feed( | |
id: null == id | |
? _value.id | |
: id // ignore: cast_nullable_to_non_nullable | |
as int, | |
content: null == content | |
? _value.content | |
: content // ignore: cast_nullable_to_non_nullable | |
as String, | |
)); | |
} | |
} | |
/// @nodoc | |
class _$_Feed implements _Feed { | |
_$_Feed({required this.id, required this.content}); | |
@override | |
final int id; | |
@override | |
final String content; | |
@override | |
String toString() { | |
return 'Feed(id: $id, content: $content)'; | |
} | |
@override | |
bool operator ==(dynamic other) { | |
return identical(this, other) || | |
(other.runtimeType == runtimeType && | |
other is _$_Feed && | |
(identical(other.id, id) || other.id == id) && | |
(identical(other.content, content) || other.content == content)); | |
} | |
@override | |
int get hashCode => Object.hash(runtimeType, id, content); | |
@JsonKey(ignore: true) | |
@override | |
@pragma('vm:prefer-inline') | |
_$$_FeedCopyWith<_$_Feed> get copyWith => | |
__$$_FeedCopyWithImpl<_$_Feed>(this, _$identity); | |
} | |
abstract class _Feed implements Feed { | |
factory _Feed({required final int id, required final String content}) = | |
_$_Feed; | |
@override | |
int get id; | |
@override | |
String get content; | |
@override | |
@JsonKey(ignore: true) | |
_$$_FeedCopyWith<_$_Feed> get copyWith => throw _privateConstructorUsedError; | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment