fix: Fix build with newer versions of Flutter
This commit is contained in:
@@ -1,7 +1,7 @@
|
||||
// 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
|
||||
// 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 'anime_list_bloc.dart';
|
||||
|
||||
@@ -12,7 +12,7 @@ part of 'anime_list_bloc.dart';
|
||||
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');
|
||||
'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 _$AnimeListState {
|
||||
@@ -25,7 +25,9 @@ mixin _$AnimeListState {
|
||||
throw _privateConstructorUsedError;
|
||||
TrackingMediumType get trackingType => throw _privateConstructorUsedError;
|
||||
|
||||
@JsonKey(ignore: true)
|
||||
/// Create a copy of AnimeListState
|
||||
/// with the given fields replaced by the non-null parameter values.
|
||||
@JsonKey(includeFromJson: false, includeToJson: false)
|
||||
$AnimeListStateCopyWith<AnimeListState> get copyWith =>
|
||||
throw _privateConstructorUsedError;
|
||||
}
|
||||
@@ -34,7 +36,8 @@ mixin _$AnimeListState {
|
||||
abstract class $AnimeListStateCopyWith<$Res> {
|
||||
factory $AnimeListStateCopyWith(
|
||||
AnimeListState value, $Res Function(AnimeListState) then) =
|
||||
_$AnimeListStateCopyWithImpl<$Res>;
|
||||
_$AnimeListStateCopyWithImpl<$Res, AnimeListState>;
|
||||
@useResult
|
||||
$Res call(
|
||||
{bool buttonVisibility,
|
||||
List<AnimeTrackingData> animes,
|
||||
@@ -45,59 +48,64 @@ abstract class $AnimeListStateCopyWith<$Res> {
|
||||
}
|
||||
|
||||
/// @nodoc
|
||||
class _$AnimeListStateCopyWithImpl<$Res>
|
||||
class _$AnimeListStateCopyWithImpl<$Res, $Val extends AnimeListState>
|
||||
implements $AnimeListStateCopyWith<$Res> {
|
||||
_$AnimeListStateCopyWithImpl(this._value, this._then);
|
||||
|
||||
final AnimeListState _value;
|
||||
// ignore: unused_field
|
||||
final $Res Function(AnimeListState) _then;
|
||||
final $Val _value;
|
||||
// ignore: unused_field
|
||||
final $Res Function($Val) _then;
|
||||
|
||||
/// Create a copy of AnimeListState
|
||||
/// with the given fields replaced by the non-null parameter values.
|
||||
@pragma('vm:prefer-inline')
|
||||
@override
|
||||
$Res call({
|
||||
Object? buttonVisibility = freezed,
|
||||
Object? animes = freezed,
|
||||
Object? mangas = freezed,
|
||||
Object? animeFilterState = freezed,
|
||||
Object? mangaFilterState = freezed,
|
||||
Object? trackingType = freezed,
|
||||
Object? buttonVisibility = null,
|
||||
Object? animes = null,
|
||||
Object? mangas = null,
|
||||
Object? animeFilterState = null,
|
||||
Object? mangaFilterState = null,
|
||||
Object? trackingType = null,
|
||||
}) {
|
||||
return _then(_value.copyWith(
|
||||
buttonVisibility: buttonVisibility == freezed
|
||||
buttonVisibility: null == buttonVisibility
|
||||
? _value.buttonVisibility
|
||||
: buttonVisibility // ignore: cast_nullable_to_non_nullable
|
||||
as bool,
|
||||
animes: animes == freezed
|
||||
animes: null == animes
|
||||
? _value.animes
|
||||
: animes // ignore: cast_nullable_to_non_nullable
|
||||
as List<AnimeTrackingData>,
|
||||
mangas: mangas == freezed
|
||||
mangas: null == mangas
|
||||
? _value.mangas
|
||||
: mangas // ignore: cast_nullable_to_non_nullable
|
||||
as List<MangaTrackingData>,
|
||||
animeFilterState: animeFilterState == freezed
|
||||
animeFilterState: null == animeFilterState
|
||||
? _value.animeFilterState
|
||||
: animeFilterState // ignore: cast_nullable_to_non_nullable
|
||||
as MediumTrackingState,
|
||||
mangaFilterState: mangaFilterState == freezed
|
||||
mangaFilterState: null == mangaFilterState
|
||||
? _value.mangaFilterState
|
||||
: mangaFilterState // ignore: cast_nullable_to_non_nullable
|
||||
as MediumTrackingState,
|
||||
trackingType: trackingType == freezed
|
||||
trackingType: null == trackingType
|
||||
? _value.trackingType
|
||||
: trackingType // ignore: cast_nullable_to_non_nullable
|
||||
as TrackingMediumType,
|
||||
));
|
||||
) as $Val);
|
||||
}
|
||||
}
|
||||
|
||||
/// @nodoc
|
||||
abstract class _$$_AnimeListStateCopyWith<$Res>
|
||||
abstract class _$$AnimeListStateImplCopyWith<$Res>
|
||||
implements $AnimeListStateCopyWith<$Res> {
|
||||
factory _$$_AnimeListStateCopyWith(
|
||||
_$_AnimeListState value, $Res Function(_$_AnimeListState) then) =
|
||||
__$$_AnimeListStateCopyWithImpl<$Res>;
|
||||
factory _$$AnimeListStateImplCopyWith(_$AnimeListStateImpl value,
|
||||
$Res Function(_$AnimeListStateImpl) then) =
|
||||
__$$AnimeListStateImplCopyWithImpl<$Res>;
|
||||
@override
|
||||
@useResult
|
||||
$Res call(
|
||||
{bool buttonVisibility,
|
||||
List<AnimeTrackingData> animes,
|
||||
@@ -108,47 +116,47 @@ abstract class _$$_AnimeListStateCopyWith<$Res>
|
||||
}
|
||||
|
||||
/// @nodoc
|
||||
class __$$_AnimeListStateCopyWithImpl<$Res>
|
||||
extends _$AnimeListStateCopyWithImpl<$Res>
|
||||
implements _$$_AnimeListStateCopyWith<$Res> {
|
||||
__$$_AnimeListStateCopyWithImpl(
|
||||
_$_AnimeListState _value, $Res Function(_$_AnimeListState) _then)
|
||||
: super(_value, (v) => _then(v as _$_AnimeListState));
|
||||
|
||||
@override
|
||||
_$_AnimeListState get _value => super._value as _$_AnimeListState;
|
||||
class __$$AnimeListStateImplCopyWithImpl<$Res>
|
||||
extends _$AnimeListStateCopyWithImpl<$Res, _$AnimeListStateImpl>
|
||||
implements _$$AnimeListStateImplCopyWith<$Res> {
|
||||
__$$AnimeListStateImplCopyWithImpl(
|
||||
_$AnimeListStateImpl _value, $Res Function(_$AnimeListStateImpl) _then)
|
||||
: super(_value, _then);
|
||||
|
||||
/// Create a copy of AnimeListState
|
||||
/// with the given fields replaced by the non-null parameter values.
|
||||
@pragma('vm:prefer-inline')
|
||||
@override
|
||||
$Res call({
|
||||
Object? buttonVisibility = freezed,
|
||||
Object? animes = freezed,
|
||||
Object? mangas = freezed,
|
||||
Object? animeFilterState = freezed,
|
||||
Object? mangaFilterState = freezed,
|
||||
Object? trackingType = freezed,
|
||||
Object? buttonVisibility = null,
|
||||
Object? animes = null,
|
||||
Object? mangas = null,
|
||||
Object? animeFilterState = null,
|
||||
Object? mangaFilterState = null,
|
||||
Object? trackingType = null,
|
||||
}) {
|
||||
return _then(_$_AnimeListState(
|
||||
buttonVisibility: buttonVisibility == freezed
|
||||
return _then(_$AnimeListStateImpl(
|
||||
buttonVisibility: null == buttonVisibility
|
||||
? _value.buttonVisibility
|
||||
: buttonVisibility // ignore: cast_nullable_to_non_nullable
|
||||
as bool,
|
||||
animes: animes == freezed
|
||||
animes: null == animes
|
||||
? _value._animes
|
||||
: animes // ignore: cast_nullable_to_non_nullable
|
||||
as List<AnimeTrackingData>,
|
||||
mangas: mangas == freezed
|
||||
mangas: null == mangas
|
||||
? _value._mangas
|
||||
: mangas // ignore: cast_nullable_to_non_nullable
|
||||
as List<MangaTrackingData>,
|
||||
animeFilterState: animeFilterState == freezed
|
||||
animeFilterState: null == animeFilterState
|
||||
? _value.animeFilterState
|
||||
: animeFilterState // ignore: cast_nullable_to_non_nullable
|
||||
as MediumTrackingState,
|
||||
mangaFilterState: mangaFilterState == freezed
|
||||
mangaFilterState: null == mangaFilterState
|
||||
? _value.mangaFilterState
|
||||
: mangaFilterState // ignore: cast_nullable_to_non_nullable
|
||||
as MediumTrackingState,
|
||||
trackingType: trackingType == freezed
|
||||
trackingType: null == trackingType
|
||||
? _value.trackingType
|
||||
: trackingType // ignore: cast_nullable_to_non_nullable
|
||||
as TrackingMediumType,
|
||||
@@ -158,8 +166,8 @@ class __$$_AnimeListStateCopyWithImpl<$Res>
|
||||
|
||||
/// @nodoc
|
||||
|
||||
class _$_AnimeListState implements _AnimeListState {
|
||||
_$_AnimeListState(
|
||||
class _$AnimeListStateImpl implements _AnimeListState {
|
||||
_$AnimeListStateImpl(
|
||||
{this.buttonVisibility = true,
|
||||
final List<AnimeTrackingData> animes = const [],
|
||||
final List<MangaTrackingData> mangas = const [],
|
||||
@@ -176,6 +184,7 @@ class _$_AnimeListState implements _AnimeListState {
|
||||
@override
|
||||
@JsonKey()
|
||||
List<AnimeTrackingData> get animes {
|
||||
if (_animes is EqualUnmodifiableListView) return _animes;
|
||||
// ignore: implicit_dynamic_type
|
||||
return EqualUnmodifiableListView(_animes);
|
||||
}
|
||||
@@ -184,6 +193,7 @@ class _$_AnimeListState implements _AnimeListState {
|
||||
@override
|
||||
@JsonKey()
|
||||
List<MangaTrackingData> get mangas {
|
||||
if (_mangas is EqualUnmodifiableListView) return _mangas;
|
||||
// ignore: implicit_dynamic_type
|
||||
return EqualUnmodifiableListView(_mangas);
|
||||
}
|
||||
@@ -204,36 +214,40 @@ class _$_AnimeListState implements _AnimeListState {
|
||||
}
|
||||
|
||||
@override
|
||||
bool operator ==(dynamic other) {
|
||||
bool operator ==(Object other) {
|
||||
return identical(this, other) ||
|
||||
(other.runtimeType == runtimeType &&
|
||||
other is _$_AnimeListState &&
|
||||
const DeepCollectionEquality()
|
||||
.equals(other.buttonVisibility, buttonVisibility) &&
|
||||
other is _$AnimeListStateImpl &&
|
||||
(identical(other.buttonVisibility, buttonVisibility) ||
|
||||
other.buttonVisibility == buttonVisibility) &&
|
||||
const DeepCollectionEquality().equals(other._animes, _animes) &&
|
||||
const DeepCollectionEquality().equals(other._mangas, _mangas) &&
|
||||
const DeepCollectionEquality()
|
||||
.equals(other.animeFilterState, animeFilterState) &&
|
||||
const DeepCollectionEquality()
|
||||
.equals(other.mangaFilterState, mangaFilterState) &&
|
||||
const DeepCollectionEquality()
|
||||
.equals(other.trackingType, trackingType));
|
||||
(identical(other.animeFilterState, animeFilterState) ||
|
||||
other.animeFilterState == animeFilterState) &&
|
||||
(identical(other.mangaFilterState, mangaFilterState) ||
|
||||
other.mangaFilterState == mangaFilterState) &&
|
||||
(identical(other.trackingType, trackingType) ||
|
||||
other.trackingType == trackingType));
|
||||
}
|
||||
|
||||
@override
|
||||
int get hashCode => Object.hash(
|
||||
runtimeType,
|
||||
const DeepCollectionEquality().hash(buttonVisibility),
|
||||
buttonVisibility,
|
||||
const DeepCollectionEquality().hash(_animes),
|
||||
const DeepCollectionEquality().hash(_mangas),
|
||||
const DeepCollectionEquality().hash(animeFilterState),
|
||||
const DeepCollectionEquality().hash(mangaFilterState),
|
||||
const DeepCollectionEquality().hash(trackingType));
|
||||
animeFilterState,
|
||||
mangaFilterState,
|
||||
trackingType);
|
||||
|
||||
@JsonKey(ignore: true)
|
||||
/// Create a copy of AnimeListState
|
||||
/// with the given fields replaced by the non-null parameter values.
|
||||
@JsonKey(includeFromJson: false, includeToJson: false)
|
||||
@override
|
||||
_$$_AnimeListStateCopyWith<_$_AnimeListState> get copyWith =>
|
||||
__$$_AnimeListStateCopyWithImpl<_$_AnimeListState>(this, _$identity);
|
||||
@pragma('vm:prefer-inline')
|
||||
_$$AnimeListStateImplCopyWith<_$AnimeListStateImpl> get copyWith =>
|
||||
__$$AnimeListStateImplCopyWithImpl<_$AnimeListStateImpl>(
|
||||
this, _$identity);
|
||||
}
|
||||
|
||||
abstract class _AnimeListState implements AnimeListState {
|
||||
@@ -243,7 +257,7 @@ abstract class _AnimeListState implements AnimeListState {
|
||||
final List<MangaTrackingData> mangas,
|
||||
final MediumTrackingState animeFilterState,
|
||||
final MediumTrackingState mangaFilterState,
|
||||
final TrackingMediumType trackingType}) = _$_AnimeListState;
|
||||
final TrackingMediumType trackingType}) = _$AnimeListStateImpl;
|
||||
|
||||
@override
|
||||
bool get buttonVisibility;
|
||||
@@ -257,8 +271,11 @@ abstract class _AnimeListState implements AnimeListState {
|
||||
MediumTrackingState get mangaFilterState;
|
||||
@override
|
||||
TrackingMediumType get trackingType;
|
||||
|
||||
/// Create a copy of AnimeListState
|
||||
/// with the given fields replaced by the non-null parameter values.
|
||||
@override
|
||||
@JsonKey(ignore: true)
|
||||
_$$_AnimeListStateCopyWith<_$_AnimeListState> get copyWith =>
|
||||
@JsonKey(includeFromJson: false, includeToJson: false)
|
||||
_$$AnimeListStateImplCopyWith<_$AnimeListStateImpl> get copyWith =>
|
||||
throw _privateConstructorUsedError;
|
||||
}
|
||||
|
||||
@@ -1,7 +1,7 @@
|
||||
// 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
|
||||
// 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 'anime_search_bloc.dart';
|
||||
|
||||
@@ -12,7 +12,7 @@ part of 'anime_search_bloc.dart';
|
||||
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');
|
||||
'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 _$AnimeSearchState {
|
||||
@@ -21,7 +21,9 @@ mixin _$AnimeSearchState {
|
||||
bool get working => throw _privateConstructorUsedError;
|
||||
List<SearchResult> get searchResults => throw _privateConstructorUsedError;
|
||||
|
||||
@JsonKey(ignore: true)
|
||||
/// Create a copy of AnimeSearchState
|
||||
/// with the given fields replaced by the non-null parameter values.
|
||||
@JsonKey(includeFromJson: false, includeToJson: false)
|
||||
$AnimeSearchStateCopyWith<AnimeSearchState> get copyWith =>
|
||||
throw _privateConstructorUsedError;
|
||||
}
|
||||
@@ -30,7 +32,8 @@ mixin _$AnimeSearchState {
|
||||
abstract class $AnimeSearchStateCopyWith<$Res> {
|
||||
factory $AnimeSearchStateCopyWith(
|
||||
AnimeSearchState value, $Res Function(AnimeSearchState) then) =
|
||||
_$AnimeSearchStateCopyWithImpl<$Res>;
|
||||
_$AnimeSearchStateCopyWithImpl<$Res, AnimeSearchState>;
|
||||
@useResult
|
||||
$Res call(
|
||||
{TrackingMediumType trackingType,
|
||||
String searchQuery,
|
||||
@@ -39,49 +42,54 @@ abstract class $AnimeSearchStateCopyWith<$Res> {
|
||||
}
|
||||
|
||||
/// @nodoc
|
||||
class _$AnimeSearchStateCopyWithImpl<$Res>
|
||||
class _$AnimeSearchStateCopyWithImpl<$Res, $Val extends AnimeSearchState>
|
||||
implements $AnimeSearchStateCopyWith<$Res> {
|
||||
_$AnimeSearchStateCopyWithImpl(this._value, this._then);
|
||||
|
||||
final AnimeSearchState _value;
|
||||
// ignore: unused_field
|
||||
final $Res Function(AnimeSearchState) _then;
|
||||
final $Val _value;
|
||||
// ignore: unused_field
|
||||
final $Res Function($Val) _then;
|
||||
|
||||
/// Create a copy of AnimeSearchState
|
||||
/// with the given fields replaced by the non-null parameter values.
|
||||
@pragma('vm:prefer-inline')
|
||||
@override
|
||||
$Res call({
|
||||
Object? trackingType = freezed,
|
||||
Object? searchQuery = freezed,
|
||||
Object? working = freezed,
|
||||
Object? searchResults = freezed,
|
||||
Object? trackingType = null,
|
||||
Object? searchQuery = null,
|
||||
Object? working = null,
|
||||
Object? searchResults = null,
|
||||
}) {
|
||||
return _then(_value.copyWith(
|
||||
trackingType: trackingType == freezed
|
||||
trackingType: null == trackingType
|
||||
? _value.trackingType
|
||||
: trackingType // ignore: cast_nullable_to_non_nullable
|
||||
as TrackingMediumType,
|
||||
searchQuery: searchQuery == freezed
|
||||
searchQuery: null == searchQuery
|
||||
? _value.searchQuery
|
||||
: searchQuery // ignore: cast_nullable_to_non_nullable
|
||||
as String,
|
||||
working: working == freezed
|
||||
working: null == working
|
||||
? _value.working
|
||||
: working // ignore: cast_nullable_to_non_nullable
|
||||
as bool,
|
||||
searchResults: searchResults == freezed
|
||||
searchResults: null == searchResults
|
||||
? _value.searchResults
|
||||
: searchResults // ignore: cast_nullable_to_non_nullable
|
||||
as List<SearchResult>,
|
||||
));
|
||||
) as $Val);
|
||||
}
|
||||
}
|
||||
|
||||
/// @nodoc
|
||||
abstract class _$$_AnimeSearchStateCopyWith<$Res>
|
||||
abstract class _$$AnimeSearchStateImplCopyWith<$Res>
|
||||
implements $AnimeSearchStateCopyWith<$Res> {
|
||||
factory _$$_AnimeSearchStateCopyWith(
|
||||
_$_AnimeSearchState value, $Res Function(_$_AnimeSearchState) then) =
|
||||
__$$_AnimeSearchStateCopyWithImpl<$Res>;
|
||||
factory _$$AnimeSearchStateImplCopyWith(_$AnimeSearchStateImpl value,
|
||||
$Res Function(_$AnimeSearchStateImpl) then) =
|
||||
__$$AnimeSearchStateImplCopyWithImpl<$Res>;
|
||||
@override
|
||||
@useResult
|
||||
$Res call(
|
||||
{TrackingMediumType trackingType,
|
||||
String searchQuery,
|
||||
@@ -90,37 +98,37 @@ abstract class _$$_AnimeSearchStateCopyWith<$Res>
|
||||
}
|
||||
|
||||
/// @nodoc
|
||||
class __$$_AnimeSearchStateCopyWithImpl<$Res>
|
||||
extends _$AnimeSearchStateCopyWithImpl<$Res>
|
||||
implements _$$_AnimeSearchStateCopyWith<$Res> {
|
||||
__$$_AnimeSearchStateCopyWithImpl(
|
||||
_$_AnimeSearchState _value, $Res Function(_$_AnimeSearchState) _then)
|
||||
: super(_value, (v) => _then(v as _$_AnimeSearchState));
|
||||
|
||||
@override
|
||||
_$_AnimeSearchState get _value => super._value as _$_AnimeSearchState;
|
||||
class __$$AnimeSearchStateImplCopyWithImpl<$Res>
|
||||
extends _$AnimeSearchStateCopyWithImpl<$Res, _$AnimeSearchStateImpl>
|
||||
implements _$$AnimeSearchStateImplCopyWith<$Res> {
|
||||
__$$AnimeSearchStateImplCopyWithImpl(_$AnimeSearchStateImpl _value,
|
||||
$Res Function(_$AnimeSearchStateImpl) _then)
|
||||
: super(_value, _then);
|
||||
|
||||
/// Create a copy of AnimeSearchState
|
||||
/// with the given fields replaced by the non-null parameter values.
|
||||
@pragma('vm:prefer-inline')
|
||||
@override
|
||||
$Res call({
|
||||
Object? trackingType = freezed,
|
||||
Object? searchQuery = freezed,
|
||||
Object? working = freezed,
|
||||
Object? searchResults = freezed,
|
||||
Object? trackingType = null,
|
||||
Object? searchQuery = null,
|
||||
Object? working = null,
|
||||
Object? searchResults = null,
|
||||
}) {
|
||||
return _then(_$_AnimeSearchState(
|
||||
trackingType: trackingType == freezed
|
||||
return _then(_$AnimeSearchStateImpl(
|
||||
trackingType: null == trackingType
|
||||
? _value.trackingType
|
||||
: trackingType // ignore: cast_nullable_to_non_nullable
|
||||
as TrackingMediumType,
|
||||
searchQuery: searchQuery == freezed
|
||||
searchQuery: null == searchQuery
|
||||
? _value.searchQuery
|
||||
: searchQuery // ignore: cast_nullable_to_non_nullable
|
||||
as String,
|
||||
working: working == freezed
|
||||
working: null == working
|
||||
? _value.working
|
||||
: working // ignore: cast_nullable_to_non_nullable
|
||||
as bool,
|
||||
searchResults: searchResults == freezed
|
||||
searchResults: null == searchResults
|
||||
? _value._searchResults
|
||||
: searchResults // ignore: cast_nullable_to_non_nullable
|
||||
as List<SearchResult>,
|
||||
@@ -130,8 +138,8 @@ class __$$_AnimeSearchStateCopyWithImpl<$Res>
|
||||
|
||||
/// @nodoc
|
||||
|
||||
class _$_AnimeSearchState implements _AnimeSearchState {
|
||||
_$_AnimeSearchState(
|
||||
class _$AnimeSearchStateImpl implements _AnimeSearchState {
|
||||
_$AnimeSearchStateImpl(
|
||||
{this.trackingType = TrackingMediumType.anime,
|
||||
this.searchQuery = '',
|
||||
this.working = false,
|
||||
@@ -151,6 +159,7 @@ class _$_AnimeSearchState implements _AnimeSearchState {
|
||||
@override
|
||||
@JsonKey()
|
||||
List<SearchResult> get searchResults {
|
||||
if (_searchResults is EqualUnmodifiableListView) return _searchResults;
|
||||
// ignore: implicit_dynamic_type
|
||||
return EqualUnmodifiableListView(_searchResults);
|
||||
}
|
||||
@@ -161,31 +170,31 @@ class _$_AnimeSearchState implements _AnimeSearchState {
|
||||
}
|
||||
|
||||
@override
|
||||
bool operator ==(dynamic other) {
|
||||
bool operator ==(Object other) {
|
||||
return identical(this, other) ||
|
||||
(other.runtimeType == runtimeType &&
|
||||
other is _$_AnimeSearchState &&
|
||||
const DeepCollectionEquality()
|
||||
.equals(other.trackingType, trackingType) &&
|
||||
const DeepCollectionEquality()
|
||||
.equals(other.searchQuery, searchQuery) &&
|
||||
const DeepCollectionEquality().equals(other.working, working) &&
|
||||
other is _$AnimeSearchStateImpl &&
|
||||
(identical(other.trackingType, trackingType) ||
|
||||
other.trackingType == trackingType) &&
|
||||
(identical(other.searchQuery, searchQuery) ||
|
||||
other.searchQuery == searchQuery) &&
|
||||
(identical(other.working, working) || other.working == working) &&
|
||||
const DeepCollectionEquality()
|
||||
.equals(other._searchResults, _searchResults));
|
||||
}
|
||||
|
||||
@override
|
||||
int get hashCode => Object.hash(
|
||||
runtimeType,
|
||||
const DeepCollectionEquality().hash(trackingType),
|
||||
const DeepCollectionEquality().hash(searchQuery),
|
||||
const DeepCollectionEquality().hash(working),
|
||||
const DeepCollectionEquality().hash(_searchResults));
|
||||
int get hashCode => Object.hash(runtimeType, trackingType, searchQuery,
|
||||
working, const DeepCollectionEquality().hash(_searchResults));
|
||||
|
||||
@JsonKey(ignore: true)
|
||||
/// Create a copy of AnimeSearchState
|
||||
/// with the given fields replaced by the non-null parameter values.
|
||||
@JsonKey(includeFromJson: false, includeToJson: false)
|
||||
@override
|
||||
_$$_AnimeSearchStateCopyWith<_$_AnimeSearchState> get copyWith =>
|
||||
__$$_AnimeSearchStateCopyWithImpl<_$_AnimeSearchState>(this, _$identity);
|
||||
@pragma('vm:prefer-inline')
|
||||
_$$AnimeSearchStateImplCopyWith<_$AnimeSearchStateImpl> get copyWith =>
|
||||
__$$AnimeSearchStateImplCopyWithImpl<_$AnimeSearchStateImpl>(
|
||||
this, _$identity);
|
||||
}
|
||||
|
||||
abstract class _AnimeSearchState implements AnimeSearchState {
|
||||
@@ -193,7 +202,7 @@ abstract class _AnimeSearchState implements AnimeSearchState {
|
||||
{final TrackingMediumType trackingType,
|
||||
final String searchQuery,
|
||||
final bool working,
|
||||
final List<SearchResult> searchResults}) = _$_AnimeSearchState;
|
||||
final List<SearchResult> searchResults}) = _$AnimeSearchStateImpl;
|
||||
|
||||
@override
|
||||
TrackingMediumType get trackingType;
|
||||
@@ -203,8 +212,11 @@ abstract class _AnimeSearchState implements AnimeSearchState {
|
||||
bool get working;
|
||||
@override
|
||||
List<SearchResult> get searchResults;
|
||||
|
||||
/// Create a copy of AnimeSearchState
|
||||
/// with the given fields replaced by the non-null parameter values.
|
||||
@override
|
||||
@JsonKey(ignore: true)
|
||||
_$$_AnimeSearchStateCopyWith<_$_AnimeSearchState> get copyWith =>
|
||||
@JsonKey(includeFromJson: false, includeToJson: false)
|
||||
_$$AnimeSearchStateImplCopyWith<_$AnimeSearchStateImpl> get copyWith =>
|
||||
throw _privateConstructorUsedError;
|
||||
}
|
||||
|
||||
@@ -1,7 +1,7 @@
|
||||
// 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
|
||||
// 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 'calendar_bloc.dart';
|
||||
|
||||
@@ -12,7 +12,7 @@ part of 'calendar_bloc.dart';
|
||||
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');
|
||||
'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 _$CalendarState {
|
||||
@@ -20,7 +20,9 @@ mixin _$CalendarState {
|
||||
int get refreshingCount => throw _privateConstructorUsedError;
|
||||
int get refreshingTotal => throw _privateConstructorUsedError;
|
||||
|
||||
@JsonKey(ignore: true)
|
||||
/// Create a copy of CalendarState
|
||||
/// with the given fields replaced by the non-null parameter values.
|
||||
@JsonKey(includeFromJson: false, includeToJson: false)
|
||||
$CalendarStateCopyWith<CalendarState> get copyWith =>
|
||||
throw _privateConstructorUsedError;
|
||||
}
|
||||
@@ -29,79 +31,85 @@ mixin _$CalendarState {
|
||||
abstract class $CalendarStateCopyWith<$Res> {
|
||||
factory $CalendarStateCopyWith(
|
||||
CalendarState value, $Res Function(CalendarState) then) =
|
||||
_$CalendarStateCopyWithImpl<$Res>;
|
||||
_$CalendarStateCopyWithImpl<$Res, CalendarState>;
|
||||
@useResult
|
||||
$Res call({bool refreshing, int refreshingCount, int refreshingTotal});
|
||||
}
|
||||
|
||||
/// @nodoc
|
||||
class _$CalendarStateCopyWithImpl<$Res>
|
||||
class _$CalendarStateCopyWithImpl<$Res, $Val extends CalendarState>
|
||||
implements $CalendarStateCopyWith<$Res> {
|
||||
_$CalendarStateCopyWithImpl(this._value, this._then);
|
||||
|
||||
final CalendarState _value;
|
||||
// ignore: unused_field
|
||||
final $Res Function(CalendarState) _then;
|
||||
final $Val _value;
|
||||
// ignore: unused_field
|
||||
final $Res Function($Val) _then;
|
||||
|
||||
/// Create a copy of CalendarState
|
||||
/// with the given fields replaced by the non-null parameter values.
|
||||
@pragma('vm:prefer-inline')
|
||||
@override
|
||||
$Res call({
|
||||
Object? refreshing = freezed,
|
||||
Object? refreshingCount = freezed,
|
||||
Object? refreshingTotal = freezed,
|
||||
Object? refreshing = null,
|
||||
Object? refreshingCount = null,
|
||||
Object? refreshingTotal = null,
|
||||
}) {
|
||||
return _then(_value.copyWith(
|
||||
refreshing: refreshing == freezed
|
||||
refreshing: null == refreshing
|
||||
? _value.refreshing
|
||||
: refreshing // ignore: cast_nullable_to_non_nullable
|
||||
as bool,
|
||||
refreshingCount: refreshingCount == freezed
|
||||
refreshingCount: null == refreshingCount
|
||||
? _value.refreshingCount
|
||||
: refreshingCount // ignore: cast_nullable_to_non_nullable
|
||||
as int,
|
||||
refreshingTotal: refreshingTotal == freezed
|
||||
refreshingTotal: null == refreshingTotal
|
||||
? _value.refreshingTotal
|
||||
: refreshingTotal // ignore: cast_nullable_to_non_nullable
|
||||
as int,
|
||||
));
|
||||
) as $Val);
|
||||
}
|
||||
}
|
||||
|
||||
/// @nodoc
|
||||
abstract class _$$_CalendarStateCopyWith<$Res>
|
||||
abstract class _$$CalendarStateImplCopyWith<$Res>
|
||||
implements $CalendarStateCopyWith<$Res> {
|
||||
factory _$$_CalendarStateCopyWith(
|
||||
_$_CalendarState value, $Res Function(_$_CalendarState) then) =
|
||||
__$$_CalendarStateCopyWithImpl<$Res>;
|
||||
factory _$$CalendarStateImplCopyWith(
|
||||
_$CalendarStateImpl value, $Res Function(_$CalendarStateImpl) then) =
|
||||
__$$CalendarStateImplCopyWithImpl<$Res>;
|
||||
@override
|
||||
@useResult
|
||||
$Res call({bool refreshing, int refreshingCount, int refreshingTotal});
|
||||
}
|
||||
|
||||
/// @nodoc
|
||||
class __$$_CalendarStateCopyWithImpl<$Res>
|
||||
extends _$CalendarStateCopyWithImpl<$Res>
|
||||
implements _$$_CalendarStateCopyWith<$Res> {
|
||||
__$$_CalendarStateCopyWithImpl(
|
||||
_$_CalendarState _value, $Res Function(_$_CalendarState) _then)
|
||||
: super(_value, (v) => _then(v as _$_CalendarState));
|
||||
|
||||
@override
|
||||
_$_CalendarState get _value => super._value as _$_CalendarState;
|
||||
class __$$CalendarStateImplCopyWithImpl<$Res>
|
||||
extends _$CalendarStateCopyWithImpl<$Res, _$CalendarStateImpl>
|
||||
implements _$$CalendarStateImplCopyWith<$Res> {
|
||||
__$$CalendarStateImplCopyWithImpl(
|
||||
_$CalendarStateImpl _value, $Res Function(_$CalendarStateImpl) _then)
|
||||
: super(_value, _then);
|
||||
|
||||
/// Create a copy of CalendarState
|
||||
/// with the given fields replaced by the non-null parameter values.
|
||||
@pragma('vm:prefer-inline')
|
||||
@override
|
||||
$Res call({
|
||||
Object? refreshing = freezed,
|
||||
Object? refreshingCount = freezed,
|
||||
Object? refreshingTotal = freezed,
|
||||
Object? refreshing = null,
|
||||
Object? refreshingCount = null,
|
||||
Object? refreshingTotal = null,
|
||||
}) {
|
||||
return _then(_$_CalendarState(
|
||||
refreshing == freezed
|
||||
return _then(_$CalendarStateImpl(
|
||||
null == refreshing
|
||||
? _value.refreshing
|
||||
: refreshing // ignore: cast_nullable_to_non_nullable
|
||||
as bool,
|
||||
refreshingCount == freezed
|
||||
null == refreshingCount
|
||||
? _value.refreshingCount
|
||||
: refreshingCount // ignore: cast_nullable_to_non_nullable
|
||||
as int,
|
||||
refreshingTotal == freezed
|
||||
null == refreshingTotal
|
||||
? _value.refreshingTotal
|
||||
: refreshingTotal // ignore: cast_nullable_to_non_nullable
|
||||
as int,
|
||||
@@ -111,8 +119,9 @@ class __$$_CalendarStateCopyWithImpl<$Res>
|
||||
|
||||
/// @nodoc
|
||||
|
||||
class _$_CalendarState implements _CalendarState {
|
||||
_$_CalendarState(this.refreshing, this.refreshingCount, this.refreshingTotal);
|
||||
class _$CalendarStateImpl implements _CalendarState {
|
||||
_$CalendarStateImpl(
|
||||
this.refreshing, this.refreshingCount, this.refreshingTotal);
|
||||
|
||||
@override
|
||||
final bool refreshing;
|
||||
@@ -127,34 +136,34 @@ class _$_CalendarState implements _CalendarState {
|
||||
}
|
||||
|
||||
@override
|
||||
bool operator ==(dynamic other) {
|
||||
bool operator ==(Object other) {
|
||||
return identical(this, other) ||
|
||||
(other.runtimeType == runtimeType &&
|
||||
other is _$_CalendarState &&
|
||||
const DeepCollectionEquality()
|
||||
.equals(other.refreshing, refreshing) &&
|
||||
const DeepCollectionEquality()
|
||||
.equals(other.refreshingCount, refreshingCount) &&
|
||||
const DeepCollectionEquality()
|
||||
.equals(other.refreshingTotal, refreshingTotal));
|
||||
other is _$CalendarStateImpl &&
|
||||
(identical(other.refreshing, refreshing) ||
|
||||
other.refreshing == refreshing) &&
|
||||
(identical(other.refreshingCount, refreshingCount) ||
|
||||
other.refreshingCount == refreshingCount) &&
|
||||
(identical(other.refreshingTotal, refreshingTotal) ||
|
||||
other.refreshingTotal == refreshingTotal));
|
||||
}
|
||||
|
||||
@override
|
||||
int get hashCode => Object.hash(
|
||||
runtimeType,
|
||||
const DeepCollectionEquality().hash(refreshing),
|
||||
const DeepCollectionEquality().hash(refreshingCount),
|
||||
const DeepCollectionEquality().hash(refreshingTotal));
|
||||
int get hashCode =>
|
||||
Object.hash(runtimeType, refreshing, refreshingCount, refreshingTotal);
|
||||
|
||||
@JsonKey(ignore: true)
|
||||
/// Create a copy of CalendarState
|
||||
/// with the given fields replaced by the non-null parameter values.
|
||||
@JsonKey(includeFromJson: false, includeToJson: false)
|
||||
@override
|
||||
_$$_CalendarStateCopyWith<_$_CalendarState> get copyWith =>
|
||||
__$$_CalendarStateCopyWithImpl<_$_CalendarState>(this, _$identity);
|
||||
@pragma('vm:prefer-inline')
|
||||
_$$CalendarStateImplCopyWith<_$CalendarStateImpl> get copyWith =>
|
||||
__$$CalendarStateImplCopyWithImpl<_$CalendarStateImpl>(this, _$identity);
|
||||
}
|
||||
|
||||
abstract class _CalendarState implements CalendarState {
|
||||
factory _CalendarState(final bool refreshing, final int refreshingCount,
|
||||
final int refreshingTotal) = _$_CalendarState;
|
||||
final int refreshingTotal) = _$CalendarStateImpl;
|
||||
|
||||
@override
|
||||
bool get refreshing;
|
||||
@@ -162,8 +171,11 @@ abstract class _CalendarState implements CalendarState {
|
||||
int get refreshingCount;
|
||||
@override
|
||||
int get refreshingTotal;
|
||||
|
||||
/// Create a copy of CalendarState
|
||||
/// with the given fields replaced by the non-null parameter values.
|
||||
@override
|
||||
@JsonKey(ignore: true)
|
||||
_$$_CalendarStateCopyWith<_$_CalendarState> get copyWith =>
|
||||
@JsonKey(includeFromJson: false, includeToJson: false)
|
||||
_$$CalendarStateImplCopyWith<_$CalendarStateImpl> get copyWith =>
|
||||
throw _privateConstructorUsedError;
|
||||
}
|
||||
|
||||
@@ -1,7 +1,7 @@
|
||||
// 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
|
||||
// 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 'details_bloc.dart';
|
||||
|
||||
@@ -12,7 +12,7 @@ part of 'details_bloc.dart';
|
||||
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');
|
||||
'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 _$DetailsState {
|
||||
@@ -20,7 +20,9 @@ mixin _$DetailsState {
|
||||
String? get heroImagePrefix => throw _privateConstructorUsedError;
|
||||
TrackingMediumType get trackingType => throw _privateConstructorUsedError;
|
||||
|
||||
@JsonKey(ignore: true)
|
||||
/// Create a copy of DetailsState
|
||||
/// with the given fields replaced by the non-null parameter values.
|
||||
@JsonKey(includeFromJson: false, includeToJson: false)
|
||||
$DetailsStateCopyWith<DetailsState> get copyWith =>
|
||||
throw _privateConstructorUsedError;
|
||||
}
|
||||
@@ -29,7 +31,8 @@ mixin _$DetailsState {
|
||||
abstract class $DetailsStateCopyWith<$Res> {
|
||||
factory $DetailsStateCopyWith(
|
||||
DetailsState value, $Res Function(DetailsState) then) =
|
||||
_$DetailsStateCopyWithImpl<$Res>;
|
||||
_$DetailsStateCopyWithImpl<$Res, DetailsState>;
|
||||
@useResult
|
||||
$Res call(
|
||||
{TrackingMedium? data,
|
||||
String? heroImagePrefix,
|
||||
@@ -37,43 +40,49 @@ abstract class $DetailsStateCopyWith<$Res> {
|
||||
}
|
||||
|
||||
/// @nodoc
|
||||
class _$DetailsStateCopyWithImpl<$Res> implements $DetailsStateCopyWith<$Res> {
|
||||
class _$DetailsStateCopyWithImpl<$Res, $Val extends DetailsState>
|
||||
implements $DetailsStateCopyWith<$Res> {
|
||||
_$DetailsStateCopyWithImpl(this._value, this._then);
|
||||
|
||||
final DetailsState _value;
|
||||
// ignore: unused_field
|
||||
final $Res Function(DetailsState) _then;
|
||||
final $Val _value;
|
||||
// ignore: unused_field
|
||||
final $Res Function($Val) _then;
|
||||
|
||||
/// Create a copy of DetailsState
|
||||
/// with the given fields replaced by the non-null parameter values.
|
||||
@pragma('vm:prefer-inline')
|
||||
@override
|
||||
$Res call({
|
||||
Object? data = freezed,
|
||||
Object? heroImagePrefix = freezed,
|
||||
Object? trackingType = freezed,
|
||||
Object? trackingType = null,
|
||||
}) {
|
||||
return _then(_value.copyWith(
|
||||
data: data == freezed
|
||||
data: freezed == data
|
||||
? _value.data
|
||||
: data // ignore: cast_nullable_to_non_nullable
|
||||
as TrackingMedium?,
|
||||
heroImagePrefix: heroImagePrefix == freezed
|
||||
heroImagePrefix: freezed == heroImagePrefix
|
||||
? _value.heroImagePrefix
|
||||
: heroImagePrefix // ignore: cast_nullable_to_non_nullable
|
||||
as String?,
|
||||
trackingType: trackingType == freezed
|
||||
trackingType: null == trackingType
|
||||
? _value.trackingType
|
||||
: trackingType // ignore: cast_nullable_to_non_nullable
|
||||
as TrackingMediumType,
|
||||
));
|
||||
) as $Val);
|
||||
}
|
||||
}
|
||||
|
||||
/// @nodoc
|
||||
abstract class _$$_DetailsStateCopyWith<$Res>
|
||||
abstract class _$$DetailsStateImplCopyWith<$Res>
|
||||
implements $DetailsStateCopyWith<$Res> {
|
||||
factory _$$_DetailsStateCopyWith(
|
||||
_$_DetailsState value, $Res Function(_$_DetailsState) then) =
|
||||
__$$_DetailsStateCopyWithImpl<$Res>;
|
||||
factory _$$DetailsStateImplCopyWith(
|
||||
_$DetailsStateImpl value, $Res Function(_$DetailsStateImpl) then) =
|
||||
__$$DetailsStateImplCopyWithImpl<$Res>;
|
||||
@override
|
||||
@useResult
|
||||
$Res call(
|
||||
{TrackingMedium? data,
|
||||
String? heroImagePrefix,
|
||||
@@ -81,32 +90,32 @@ abstract class _$$_DetailsStateCopyWith<$Res>
|
||||
}
|
||||
|
||||
/// @nodoc
|
||||
class __$$_DetailsStateCopyWithImpl<$Res>
|
||||
extends _$DetailsStateCopyWithImpl<$Res>
|
||||
implements _$$_DetailsStateCopyWith<$Res> {
|
||||
__$$_DetailsStateCopyWithImpl(
|
||||
_$_DetailsState _value, $Res Function(_$_DetailsState) _then)
|
||||
: super(_value, (v) => _then(v as _$_DetailsState));
|
||||
|
||||
@override
|
||||
_$_DetailsState get _value => super._value as _$_DetailsState;
|
||||
class __$$DetailsStateImplCopyWithImpl<$Res>
|
||||
extends _$DetailsStateCopyWithImpl<$Res, _$DetailsStateImpl>
|
||||
implements _$$DetailsStateImplCopyWith<$Res> {
|
||||
__$$DetailsStateImplCopyWithImpl(
|
||||
_$DetailsStateImpl _value, $Res Function(_$DetailsStateImpl) _then)
|
||||
: super(_value, _then);
|
||||
|
||||
/// Create a copy of DetailsState
|
||||
/// with the given fields replaced by the non-null parameter values.
|
||||
@pragma('vm:prefer-inline')
|
||||
@override
|
||||
$Res call({
|
||||
Object? data = freezed,
|
||||
Object? heroImagePrefix = freezed,
|
||||
Object? trackingType = freezed,
|
||||
Object? trackingType = null,
|
||||
}) {
|
||||
return _then(_$_DetailsState(
|
||||
data: data == freezed
|
||||
return _then(_$DetailsStateImpl(
|
||||
data: freezed == data
|
||||
? _value.data
|
||||
: data // ignore: cast_nullable_to_non_nullable
|
||||
as TrackingMedium?,
|
||||
heroImagePrefix: heroImagePrefix == freezed
|
||||
heroImagePrefix: freezed == heroImagePrefix
|
||||
? _value.heroImagePrefix
|
||||
: heroImagePrefix // ignore: cast_nullable_to_non_nullable
|
||||
as String?,
|
||||
trackingType: trackingType == freezed
|
||||
trackingType: null == trackingType
|
||||
? _value.trackingType
|
||||
: trackingType // ignore: cast_nullable_to_non_nullable
|
||||
as TrackingMediumType,
|
||||
@@ -116,8 +125,8 @@ class __$$_DetailsStateCopyWithImpl<$Res>
|
||||
|
||||
/// @nodoc
|
||||
|
||||
class _$_DetailsState implements _DetailsState {
|
||||
_$_DetailsState(
|
||||
class _$DetailsStateImpl implements _DetailsState {
|
||||
_$DetailsStateImpl(
|
||||
{this.data,
|
||||
this.heroImagePrefix,
|
||||
this.trackingType = TrackingMediumType.anime});
|
||||
@@ -136,35 +145,35 @@ class _$_DetailsState implements _DetailsState {
|
||||
}
|
||||
|
||||
@override
|
||||
bool operator ==(dynamic other) {
|
||||
bool operator ==(Object other) {
|
||||
return identical(this, other) ||
|
||||
(other.runtimeType == runtimeType &&
|
||||
other is _$_DetailsState &&
|
||||
const DeepCollectionEquality().equals(other.data, data) &&
|
||||
const DeepCollectionEquality()
|
||||
.equals(other.heroImagePrefix, heroImagePrefix) &&
|
||||
const DeepCollectionEquality()
|
||||
.equals(other.trackingType, trackingType));
|
||||
other is _$DetailsStateImpl &&
|
||||
(identical(other.data, data) || other.data == data) &&
|
||||
(identical(other.heroImagePrefix, heroImagePrefix) ||
|
||||
other.heroImagePrefix == heroImagePrefix) &&
|
||||
(identical(other.trackingType, trackingType) ||
|
||||
other.trackingType == trackingType));
|
||||
}
|
||||
|
||||
@override
|
||||
int get hashCode => Object.hash(
|
||||
runtimeType,
|
||||
const DeepCollectionEquality().hash(data),
|
||||
const DeepCollectionEquality().hash(heroImagePrefix),
|
||||
const DeepCollectionEquality().hash(trackingType));
|
||||
int get hashCode =>
|
||||
Object.hash(runtimeType, data, heroImagePrefix, trackingType);
|
||||
|
||||
@JsonKey(ignore: true)
|
||||
/// Create a copy of DetailsState
|
||||
/// with the given fields replaced by the non-null parameter values.
|
||||
@JsonKey(includeFromJson: false, includeToJson: false)
|
||||
@override
|
||||
_$$_DetailsStateCopyWith<_$_DetailsState> get copyWith =>
|
||||
__$$_DetailsStateCopyWithImpl<_$_DetailsState>(this, _$identity);
|
||||
@pragma('vm:prefer-inline')
|
||||
_$$DetailsStateImplCopyWith<_$DetailsStateImpl> get copyWith =>
|
||||
__$$DetailsStateImplCopyWithImpl<_$DetailsStateImpl>(this, _$identity);
|
||||
}
|
||||
|
||||
abstract class _DetailsState implements DetailsState {
|
||||
factory _DetailsState(
|
||||
{final TrackingMedium? data,
|
||||
final String? heroImagePrefix,
|
||||
final TrackingMediumType trackingType}) = _$_DetailsState;
|
||||
final TrackingMediumType trackingType}) = _$DetailsStateImpl;
|
||||
|
||||
@override
|
||||
TrackingMedium? get data;
|
||||
@@ -172,8 +181,11 @@ abstract class _DetailsState implements DetailsState {
|
||||
String? get heroImagePrefix;
|
||||
@override
|
||||
TrackingMediumType get trackingType;
|
||||
|
||||
/// Create a copy of DetailsState
|
||||
/// with the given fields replaced by the non-null parameter values.
|
||||
@override
|
||||
@JsonKey(ignore: true)
|
||||
_$$_DetailsStateCopyWith<_$_DetailsState> get copyWith =>
|
||||
@JsonKey(includeFromJson: false, includeToJson: false)
|
||||
_$$DetailsStateImplCopyWith<_$DetailsStateImpl> get copyWith =>
|
||||
throw _privateConstructorUsedError;
|
||||
}
|
||||
|
||||
@@ -1,7 +1,7 @@
|
||||
// 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
|
||||
// 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 'settings_bloc.dart';
|
||||
|
||||
@@ -12,7 +12,7 @@ part of 'settings_bloc.dart';
|
||||
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');
|
||||
'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 _$SettingsState {
|
||||
@@ -20,7 +20,9 @@ mixin _$SettingsState {
|
||||
int get importCurrent => throw _privateConstructorUsedError;
|
||||
int get importTotal => throw _privateConstructorUsedError;
|
||||
|
||||
@JsonKey(ignore: true)
|
||||
/// Create a copy of SettingsState
|
||||
/// with the given fields replaced by the non-null parameter values.
|
||||
@JsonKey(includeFromJson: false, includeToJson: false)
|
||||
$SettingsStateCopyWith<SettingsState> get copyWith =>
|
||||
throw _privateConstructorUsedError;
|
||||
}
|
||||
@@ -29,79 +31,85 @@ mixin _$SettingsState {
|
||||
abstract class $SettingsStateCopyWith<$Res> {
|
||||
factory $SettingsStateCopyWith(
|
||||
SettingsState value, $Res Function(SettingsState) then) =
|
||||
_$SettingsStateCopyWithImpl<$Res>;
|
||||
_$SettingsStateCopyWithImpl<$Res, SettingsState>;
|
||||
@useResult
|
||||
$Res call({bool importSpinnerVisible, int importCurrent, int importTotal});
|
||||
}
|
||||
|
||||
/// @nodoc
|
||||
class _$SettingsStateCopyWithImpl<$Res>
|
||||
class _$SettingsStateCopyWithImpl<$Res, $Val extends SettingsState>
|
||||
implements $SettingsStateCopyWith<$Res> {
|
||||
_$SettingsStateCopyWithImpl(this._value, this._then);
|
||||
|
||||
final SettingsState _value;
|
||||
// ignore: unused_field
|
||||
final $Res Function(SettingsState) _then;
|
||||
final $Val _value;
|
||||
// ignore: unused_field
|
||||
final $Res Function($Val) _then;
|
||||
|
||||
/// Create a copy of SettingsState
|
||||
/// with the given fields replaced by the non-null parameter values.
|
||||
@pragma('vm:prefer-inline')
|
||||
@override
|
||||
$Res call({
|
||||
Object? importSpinnerVisible = freezed,
|
||||
Object? importCurrent = freezed,
|
||||
Object? importTotal = freezed,
|
||||
Object? importSpinnerVisible = null,
|
||||
Object? importCurrent = null,
|
||||
Object? importTotal = null,
|
||||
}) {
|
||||
return _then(_value.copyWith(
|
||||
importSpinnerVisible: importSpinnerVisible == freezed
|
||||
importSpinnerVisible: null == importSpinnerVisible
|
||||
? _value.importSpinnerVisible
|
||||
: importSpinnerVisible // ignore: cast_nullable_to_non_nullable
|
||||
as bool,
|
||||
importCurrent: importCurrent == freezed
|
||||
importCurrent: null == importCurrent
|
||||
? _value.importCurrent
|
||||
: importCurrent // ignore: cast_nullable_to_non_nullable
|
||||
as int,
|
||||
importTotal: importTotal == freezed
|
||||
importTotal: null == importTotal
|
||||
? _value.importTotal
|
||||
: importTotal // ignore: cast_nullable_to_non_nullable
|
||||
as int,
|
||||
));
|
||||
) as $Val);
|
||||
}
|
||||
}
|
||||
|
||||
/// @nodoc
|
||||
abstract class _$$_SettingsStateCopyWith<$Res>
|
||||
abstract class _$$SettingsStateImplCopyWith<$Res>
|
||||
implements $SettingsStateCopyWith<$Res> {
|
||||
factory _$$_SettingsStateCopyWith(
|
||||
_$_SettingsState value, $Res Function(_$_SettingsState) then) =
|
||||
__$$_SettingsStateCopyWithImpl<$Res>;
|
||||
factory _$$SettingsStateImplCopyWith(
|
||||
_$SettingsStateImpl value, $Res Function(_$SettingsStateImpl) then) =
|
||||
__$$SettingsStateImplCopyWithImpl<$Res>;
|
||||
@override
|
||||
@useResult
|
||||
$Res call({bool importSpinnerVisible, int importCurrent, int importTotal});
|
||||
}
|
||||
|
||||
/// @nodoc
|
||||
class __$$_SettingsStateCopyWithImpl<$Res>
|
||||
extends _$SettingsStateCopyWithImpl<$Res>
|
||||
implements _$$_SettingsStateCopyWith<$Res> {
|
||||
__$$_SettingsStateCopyWithImpl(
|
||||
_$_SettingsState _value, $Res Function(_$_SettingsState) _then)
|
||||
: super(_value, (v) => _then(v as _$_SettingsState));
|
||||
|
||||
@override
|
||||
_$_SettingsState get _value => super._value as _$_SettingsState;
|
||||
class __$$SettingsStateImplCopyWithImpl<$Res>
|
||||
extends _$SettingsStateCopyWithImpl<$Res, _$SettingsStateImpl>
|
||||
implements _$$SettingsStateImplCopyWith<$Res> {
|
||||
__$$SettingsStateImplCopyWithImpl(
|
||||
_$SettingsStateImpl _value, $Res Function(_$SettingsStateImpl) _then)
|
||||
: super(_value, _then);
|
||||
|
||||
/// Create a copy of SettingsState
|
||||
/// with the given fields replaced by the non-null parameter values.
|
||||
@pragma('vm:prefer-inline')
|
||||
@override
|
||||
$Res call({
|
||||
Object? importSpinnerVisible = freezed,
|
||||
Object? importCurrent = freezed,
|
||||
Object? importTotal = freezed,
|
||||
Object? importSpinnerVisible = null,
|
||||
Object? importCurrent = null,
|
||||
Object? importTotal = null,
|
||||
}) {
|
||||
return _then(_$_SettingsState(
|
||||
importSpinnerVisible: importSpinnerVisible == freezed
|
||||
return _then(_$SettingsStateImpl(
|
||||
importSpinnerVisible: null == importSpinnerVisible
|
||||
? _value.importSpinnerVisible
|
||||
: importSpinnerVisible // ignore: cast_nullable_to_non_nullable
|
||||
as bool,
|
||||
importCurrent: importCurrent == freezed
|
||||
importCurrent: null == importCurrent
|
||||
? _value.importCurrent
|
||||
: importCurrent // ignore: cast_nullable_to_non_nullable
|
||||
as int,
|
||||
importTotal: importTotal == freezed
|
||||
importTotal: null == importTotal
|
||||
? _value.importTotal
|
||||
: importTotal // ignore: cast_nullable_to_non_nullable
|
||||
as int,
|
||||
@@ -111,8 +119,8 @@ class __$$_SettingsStateCopyWithImpl<$Res>
|
||||
|
||||
/// @nodoc
|
||||
|
||||
class _$_SettingsState implements _SettingsState {
|
||||
_$_SettingsState(
|
||||
class _$SettingsStateImpl implements _SettingsState {
|
||||
_$SettingsStateImpl(
|
||||
{this.importSpinnerVisible = false,
|
||||
this.importCurrent = 0,
|
||||
this.importTotal = 0});
|
||||
@@ -133,36 +141,36 @@ class _$_SettingsState implements _SettingsState {
|
||||
}
|
||||
|
||||
@override
|
||||
bool operator ==(dynamic other) {
|
||||
bool operator ==(Object other) {
|
||||
return identical(this, other) ||
|
||||
(other.runtimeType == runtimeType &&
|
||||
other is _$_SettingsState &&
|
||||
const DeepCollectionEquality()
|
||||
.equals(other.importSpinnerVisible, importSpinnerVisible) &&
|
||||
const DeepCollectionEquality()
|
||||
.equals(other.importCurrent, importCurrent) &&
|
||||
const DeepCollectionEquality()
|
||||
.equals(other.importTotal, importTotal));
|
||||
other is _$SettingsStateImpl &&
|
||||
(identical(other.importSpinnerVisible, importSpinnerVisible) ||
|
||||
other.importSpinnerVisible == importSpinnerVisible) &&
|
||||
(identical(other.importCurrent, importCurrent) ||
|
||||
other.importCurrent == importCurrent) &&
|
||||
(identical(other.importTotal, importTotal) ||
|
||||
other.importTotal == importTotal));
|
||||
}
|
||||
|
||||
@override
|
||||
int get hashCode => Object.hash(
|
||||
runtimeType,
|
||||
const DeepCollectionEquality().hash(importSpinnerVisible),
|
||||
const DeepCollectionEquality().hash(importCurrent),
|
||||
const DeepCollectionEquality().hash(importTotal));
|
||||
runtimeType, importSpinnerVisible, importCurrent, importTotal);
|
||||
|
||||
@JsonKey(ignore: true)
|
||||
/// Create a copy of SettingsState
|
||||
/// with the given fields replaced by the non-null parameter values.
|
||||
@JsonKey(includeFromJson: false, includeToJson: false)
|
||||
@override
|
||||
_$$_SettingsStateCopyWith<_$_SettingsState> get copyWith =>
|
||||
__$$_SettingsStateCopyWithImpl<_$_SettingsState>(this, _$identity);
|
||||
@pragma('vm:prefer-inline')
|
||||
_$$SettingsStateImplCopyWith<_$SettingsStateImpl> get copyWith =>
|
||||
__$$SettingsStateImplCopyWithImpl<_$SettingsStateImpl>(this, _$identity);
|
||||
}
|
||||
|
||||
abstract class _SettingsState implements SettingsState {
|
||||
factory _SettingsState(
|
||||
{final bool importSpinnerVisible,
|
||||
final int importCurrent,
|
||||
final int importTotal}) = _$_SettingsState;
|
||||
final int importTotal}) = _$SettingsStateImpl;
|
||||
|
||||
@override
|
||||
bool get importSpinnerVisible;
|
||||
@@ -170,8 +178,11 @@ abstract class _SettingsState implements SettingsState {
|
||||
int get importCurrent;
|
||||
@override
|
||||
int get importTotal;
|
||||
|
||||
/// Create a copy of SettingsState
|
||||
/// with the given fields replaced by the non-null parameter values.
|
||||
@override
|
||||
@JsonKey(ignore: true)
|
||||
_$$_SettingsStateCopyWith<_$_SettingsState> get copyWith =>
|
||||
@JsonKey(includeFromJson: false, includeToJson: false)
|
||||
_$$SettingsStateImplCopyWith<_$SettingsStateImpl> get copyWith =>
|
||||
throw _privateConstructorUsedError;
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user