chore: Update Flutter version and dependencies
This commit is contained in:
@@ -1,5 +1,5 @@
|
||||
// coverage:ignore-file
|
||||
// GENERATED CODE - DO NOT MODIFY BY HAND
|
||||
// coverage:ignore-file
|
||||
// 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
|
||||
|
||||
@@ -9,86 +9,53 @@ part of 'anime_search_bloc.dart';
|
||||
// FreezedGenerator
|
||||
// **************************************************************************
|
||||
|
||||
// dart format off
|
||||
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 _$AnimeSearchState {
|
||||
TrackingMediumType get trackingType => throw _privateConstructorUsedError;
|
||||
String get searchQuery => throw _privateConstructorUsedError;
|
||||
bool get working => throw _privateConstructorUsedError;
|
||||
List<SearchResult> get searchResults => throw _privateConstructorUsedError;
|
||||
TrackingMediumType get trackingType;
|
||||
String get searchQuery;
|
||||
bool get working;
|
||||
List<SearchResult> get searchResults;
|
||||
|
||||
/// 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;
|
||||
}
|
||||
|
||||
/// @nodoc
|
||||
abstract class $AnimeSearchStateCopyWith<$Res> {
|
||||
factory $AnimeSearchStateCopyWith(
|
||||
AnimeSearchState value, $Res Function(AnimeSearchState) then) =
|
||||
_$AnimeSearchStateCopyWithImpl<$Res, AnimeSearchState>;
|
||||
@useResult
|
||||
$Res call(
|
||||
{TrackingMediumType trackingType,
|
||||
String searchQuery,
|
||||
bool working,
|
||||
List<SearchResult> searchResults});
|
||||
}
|
||||
|
||||
/// @nodoc
|
||||
class _$AnimeSearchStateCopyWithImpl<$Res, $Val extends AnimeSearchState>
|
||||
implements $AnimeSearchStateCopyWith<$Res> {
|
||||
_$AnimeSearchStateCopyWithImpl(this._value, this._then);
|
||||
|
||||
// ignore: unused_field
|
||||
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')
|
||||
$AnimeSearchStateCopyWith<AnimeSearchState> get copyWith =>
|
||||
_$AnimeSearchStateCopyWithImpl<AnimeSearchState>(
|
||||
this as AnimeSearchState, _$identity);
|
||||
|
||||
@override
|
||||
$Res call({
|
||||
Object? trackingType = null,
|
||||
Object? searchQuery = null,
|
||||
Object? working = null,
|
||||
Object? searchResults = null,
|
||||
}) {
|
||||
return _then(_value.copyWith(
|
||||
trackingType: null == trackingType
|
||||
? _value.trackingType
|
||||
: trackingType // ignore: cast_nullable_to_non_nullable
|
||||
as TrackingMediumType,
|
||||
searchQuery: null == searchQuery
|
||||
? _value.searchQuery
|
||||
: searchQuery // ignore: cast_nullable_to_non_nullable
|
||||
as String,
|
||||
working: null == working
|
||||
? _value.working
|
||||
: working // ignore: cast_nullable_to_non_nullable
|
||||
as bool,
|
||||
searchResults: null == searchResults
|
||||
? _value.searchResults
|
||||
: searchResults // ignore: cast_nullable_to_non_nullable
|
||||
as List<SearchResult>,
|
||||
) as $Val);
|
||||
bool operator ==(Object other) {
|
||||
return identical(this, other) ||
|
||||
(other.runtimeType == runtimeType &&
|
||||
other is AnimeSearchState &&
|
||||
(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, trackingType, searchQuery,
|
||||
working, const DeepCollectionEquality().hash(searchResults));
|
||||
|
||||
@override
|
||||
String toString() {
|
||||
return 'AnimeSearchState(trackingType: $trackingType, searchQuery: $searchQuery, working: $working, searchResults: $searchResults)';
|
||||
}
|
||||
}
|
||||
|
||||
/// @nodoc
|
||||
abstract class _$$AnimeSearchStateImplCopyWith<$Res>
|
||||
implements $AnimeSearchStateCopyWith<$Res> {
|
||||
factory _$$AnimeSearchStateImplCopyWith(_$AnimeSearchStateImpl value,
|
||||
$Res Function(_$AnimeSearchStateImpl) then) =
|
||||
__$$AnimeSearchStateImplCopyWithImpl<$Res>;
|
||||
@override
|
||||
abstract mixin class $AnimeSearchStateCopyWith<$Res> {
|
||||
factory $AnimeSearchStateCopyWith(
|
||||
AnimeSearchState value, $Res Function(AnimeSearchState) _then) =
|
||||
_$AnimeSearchStateCopyWithImpl;
|
||||
@useResult
|
||||
$Res call(
|
||||
{TrackingMediumType trackingType,
|
||||
@@ -98,12 +65,12 @@ abstract class _$$AnimeSearchStateImplCopyWith<$Res>
|
||||
}
|
||||
|
||||
/// @nodoc
|
||||
class __$$AnimeSearchStateImplCopyWithImpl<$Res>
|
||||
extends _$AnimeSearchStateCopyWithImpl<$Res, _$AnimeSearchStateImpl>
|
||||
implements _$$AnimeSearchStateImplCopyWith<$Res> {
|
||||
__$$AnimeSearchStateImplCopyWithImpl(_$AnimeSearchStateImpl _value,
|
||||
$Res Function(_$AnimeSearchStateImpl) _then)
|
||||
: super(_value, _then);
|
||||
class _$AnimeSearchStateCopyWithImpl<$Res>
|
||||
implements $AnimeSearchStateCopyWith<$Res> {
|
||||
_$AnimeSearchStateCopyWithImpl(this._self, this._then);
|
||||
|
||||
final AnimeSearchState _self;
|
||||
final $Res Function(AnimeSearchState) _then;
|
||||
|
||||
/// Create a copy of AnimeSearchState
|
||||
/// with the given fields replaced by the non-null parameter values.
|
||||
@@ -115,31 +82,197 @@ class __$$AnimeSearchStateImplCopyWithImpl<$Res>
|
||||
Object? working = null,
|
||||
Object? searchResults = null,
|
||||
}) {
|
||||
return _then(_$AnimeSearchStateImpl(
|
||||
return _then(_self.copyWith(
|
||||
trackingType: null == trackingType
|
||||
? _value.trackingType
|
||||
? _self.trackingType
|
||||
: trackingType // ignore: cast_nullable_to_non_nullable
|
||||
as TrackingMediumType,
|
||||
searchQuery: null == searchQuery
|
||||
? _value.searchQuery
|
||||
? _self.searchQuery
|
||||
: searchQuery // ignore: cast_nullable_to_non_nullable
|
||||
as String,
|
||||
working: null == working
|
||||
? _value.working
|
||||
? _self.working
|
||||
: working // ignore: cast_nullable_to_non_nullable
|
||||
as bool,
|
||||
searchResults: null == searchResults
|
||||
? _value._searchResults
|
||||
? _self.searchResults
|
||||
: searchResults // ignore: cast_nullable_to_non_nullable
|
||||
as List<SearchResult>,
|
||||
));
|
||||
}
|
||||
}
|
||||
|
||||
/// Adds pattern-matching-related methods to [AnimeSearchState].
|
||||
extension AnimeSearchStatePatterns on AnimeSearchState {
|
||||
/// A variant of `map` that fallback to returning `orElse`.
|
||||
///
|
||||
/// It is equivalent to doing:
|
||||
/// ```dart
|
||||
/// switch (sealedClass) {
|
||||
/// case final Subclass value:
|
||||
/// return ...;
|
||||
/// case _:
|
||||
/// return orElse();
|
||||
/// }
|
||||
/// ```
|
||||
|
||||
@optionalTypeArgs
|
||||
TResult maybeMap<TResult extends Object?>(
|
||||
TResult Function(_AnimeSearchState value)? $default, {
|
||||
required TResult orElse(),
|
||||
}) {
|
||||
final _that = this;
|
||||
switch (_that) {
|
||||
case _AnimeSearchState() when $default != null:
|
||||
return $default(_that);
|
||||
case _:
|
||||
return orElse();
|
||||
}
|
||||
}
|
||||
|
||||
/// A `switch`-like method, using callbacks.
|
||||
///
|
||||
/// Callbacks receives the raw object, upcasted.
|
||||
/// It is equivalent to doing:
|
||||
/// ```dart
|
||||
/// switch (sealedClass) {
|
||||
/// case final Subclass value:
|
||||
/// return ...;
|
||||
/// case final Subclass2 value:
|
||||
/// return ...;
|
||||
/// }
|
||||
/// ```
|
||||
|
||||
@optionalTypeArgs
|
||||
TResult map<TResult extends Object?>(
|
||||
TResult Function(_AnimeSearchState value) $default,
|
||||
) {
|
||||
final _that = this;
|
||||
switch (_that) {
|
||||
case _AnimeSearchState():
|
||||
return $default(_that);
|
||||
case _:
|
||||
throw StateError('Unexpected subclass');
|
||||
}
|
||||
}
|
||||
|
||||
/// A variant of `map` that fallback to returning `null`.
|
||||
///
|
||||
/// It is equivalent to doing:
|
||||
/// ```dart
|
||||
/// switch (sealedClass) {
|
||||
/// case final Subclass value:
|
||||
/// return ...;
|
||||
/// case _:
|
||||
/// return null;
|
||||
/// }
|
||||
/// ```
|
||||
|
||||
@optionalTypeArgs
|
||||
TResult? mapOrNull<TResult extends Object?>(
|
||||
TResult? Function(_AnimeSearchState value)? $default,
|
||||
) {
|
||||
final _that = this;
|
||||
switch (_that) {
|
||||
case _AnimeSearchState() when $default != null:
|
||||
return $default(_that);
|
||||
case _:
|
||||
return null;
|
||||
}
|
||||
}
|
||||
|
||||
/// A variant of `when` that fallback to an `orElse` callback.
|
||||
///
|
||||
/// It is equivalent to doing:
|
||||
/// ```dart
|
||||
/// switch (sealedClass) {
|
||||
/// case Subclass(:final field):
|
||||
/// return ...;
|
||||
/// case _:
|
||||
/// return orElse();
|
||||
/// }
|
||||
/// ```
|
||||
|
||||
@optionalTypeArgs
|
||||
TResult maybeWhen<TResult extends Object?>(
|
||||
TResult Function(TrackingMediumType trackingType, String searchQuery,
|
||||
bool working, List<SearchResult> searchResults)?
|
||||
$default, {
|
||||
required TResult orElse(),
|
||||
}) {
|
||||
final _that = this;
|
||||
switch (_that) {
|
||||
case _AnimeSearchState() when $default != null:
|
||||
return $default(_that.trackingType, _that.searchQuery, _that.working,
|
||||
_that.searchResults);
|
||||
case _:
|
||||
return orElse();
|
||||
}
|
||||
}
|
||||
|
||||
/// A `switch`-like method, using callbacks.
|
||||
///
|
||||
/// As opposed to `map`, this offers destructuring.
|
||||
/// It is equivalent to doing:
|
||||
/// ```dart
|
||||
/// switch (sealedClass) {
|
||||
/// case Subclass(:final field):
|
||||
/// return ...;
|
||||
/// case Subclass2(:final field2):
|
||||
/// return ...;
|
||||
/// }
|
||||
/// ```
|
||||
|
||||
@optionalTypeArgs
|
||||
TResult when<TResult extends Object?>(
|
||||
TResult Function(TrackingMediumType trackingType, String searchQuery,
|
||||
bool working, List<SearchResult> searchResults)
|
||||
$default,
|
||||
) {
|
||||
final _that = this;
|
||||
switch (_that) {
|
||||
case _AnimeSearchState():
|
||||
return $default(_that.trackingType, _that.searchQuery, _that.working,
|
||||
_that.searchResults);
|
||||
case _:
|
||||
throw StateError('Unexpected subclass');
|
||||
}
|
||||
}
|
||||
|
||||
/// A variant of `when` that fallback to returning `null`
|
||||
///
|
||||
/// It is equivalent to doing:
|
||||
/// ```dart
|
||||
/// switch (sealedClass) {
|
||||
/// case Subclass(:final field):
|
||||
/// return ...;
|
||||
/// case _:
|
||||
/// return null;
|
||||
/// }
|
||||
/// ```
|
||||
|
||||
@optionalTypeArgs
|
||||
TResult? whenOrNull<TResult extends Object?>(
|
||||
TResult? Function(TrackingMediumType trackingType, String searchQuery,
|
||||
bool working, List<SearchResult> searchResults)?
|
||||
$default,
|
||||
) {
|
||||
final _that = this;
|
||||
switch (_that) {
|
||||
case _AnimeSearchState() when $default != null:
|
||||
return $default(_that.trackingType, _that.searchQuery, _that.working,
|
||||
_that.searchResults);
|
||||
case _:
|
||||
return null;
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
/// @nodoc
|
||||
|
||||
class _$AnimeSearchStateImpl implements _AnimeSearchState {
|
||||
_$AnimeSearchStateImpl(
|
||||
class _AnimeSearchState implements AnimeSearchState {
|
||||
_AnimeSearchState(
|
||||
{this.trackingType = TrackingMediumType.anime,
|
||||
this.searchQuery = '',
|
||||
this.working = false,
|
||||
@@ -164,16 +297,19 @@ class _$AnimeSearchStateImpl implements _AnimeSearchState {
|
||||
return EqualUnmodifiableListView(_searchResults);
|
||||
}
|
||||
|
||||
/// Create a copy of AnimeSearchState
|
||||
/// with the given fields replaced by the non-null parameter values.
|
||||
@override
|
||||
String toString() {
|
||||
return 'AnimeSearchState(trackingType: $trackingType, searchQuery: $searchQuery, working: $working, searchResults: $searchResults)';
|
||||
}
|
||||
@JsonKey(includeFromJson: false, includeToJson: false)
|
||||
@pragma('vm:prefer-inline')
|
||||
_$AnimeSearchStateCopyWith<_AnimeSearchState> get copyWith =>
|
||||
__$AnimeSearchStateCopyWithImpl<_AnimeSearchState>(this, _$identity);
|
||||
|
||||
@override
|
||||
bool operator ==(Object other) {
|
||||
return identical(this, other) ||
|
||||
(other.runtimeType == runtimeType &&
|
||||
other is _$AnimeSearchStateImpl &&
|
||||
other is _AnimeSearchState &&
|
||||
(identical(other.trackingType, trackingType) ||
|
||||
other.trackingType == trackingType) &&
|
||||
(identical(other.searchQuery, searchQuery) ||
|
||||
@@ -187,36 +323,64 @@ class _$AnimeSearchStateImpl implements _AnimeSearchState {
|
||||
int get hashCode => Object.hash(runtimeType, trackingType, searchQuery,
|
||||
working, const DeepCollectionEquality().hash(_searchResults));
|
||||
|
||||
@override
|
||||
String toString() {
|
||||
return 'AnimeSearchState(trackingType: $trackingType, searchQuery: $searchQuery, working: $working, searchResults: $searchResults)';
|
||||
}
|
||||
}
|
||||
|
||||
/// @nodoc
|
||||
abstract mixin class _$AnimeSearchStateCopyWith<$Res>
|
||||
implements $AnimeSearchStateCopyWith<$Res> {
|
||||
factory _$AnimeSearchStateCopyWith(
|
||||
_AnimeSearchState value, $Res Function(_AnimeSearchState) _then) =
|
||||
__$AnimeSearchStateCopyWithImpl;
|
||||
@override
|
||||
@useResult
|
||||
$Res call(
|
||||
{TrackingMediumType trackingType,
|
||||
String searchQuery,
|
||||
bool working,
|
||||
List<SearchResult> searchResults});
|
||||
}
|
||||
|
||||
/// @nodoc
|
||||
class __$AnimeSearchStateCopyWithImpl<$Res>
|
||||
implements _$AnimeSearchStateCopyWith<$Res> {
|
||||
__$AnimeSearchStateCopyWithImpl(this._self, this._then);
|
||||
|
||||
final _AnimeSearchState _self;
|
||||
final $Res Function(_AnimeSearchState) _then;
|
||||
|
||||
/// Create a copy of AnimeSearchState
|
||||
/// with the given fields replaced by the non-null parameter values.
|
||||
@JsonKey(includeFromJson: false, includeToJson: false)
|
||||
@override
|
||||
@pragma('vm:prefer-inline')
|
||||
_$$AnimeSearchStateImplCopyWith<_$AnimeSearchStateImpl> get copyWith =>
|
||||
__$$AnimeSearchStateImplCopyWithImpl<_$AnimeSearchStateImpl>(
|
||||
this, _$identity);
|
||||
$Res call({
|
||||
Object? trackingType = null,
|
||||
Object? searchQuery = null,
|
||||
Object? working = null,
|
||||
Object? searchResults = null,
|
||||
}) {
|
||||
return _then(_AnimeSearchState(
|
||||
trackingType: null == trackingType
|
||||
? _self.trackingType
|
||||
: trackingType // ignore: cast_nullable_to_non_nullable
|
||||
as TrackingMediumType,
|
||||
searchQuery: null == searchQuery
|
||||
? _self.searchQuery
|
||||
: searchQuery // ignore: cast_nullable_to_non_nullable
|
||||
as String,
|
||||
working: null == working
|
||||
? _self.working
|
||||
: working // ignore: cast_nullable_to_non_nullable
|
||||
as bool,
|
||||
searchResults: null == searchResults
|
||||
? _self._searchResults
|
||||
: searchResults // ignore: cast_nullable_to_non_nullable
|
||||
as List<SearchResult>,
|
||||
));
|
||||
}
|
||||
}
|
||||
|
||||
abstract class _AnimeSearchState implements AnimeSearchState {
|
||||
factory _AnimeSearchState(
|
||||
{final TrackingMediumType trackingType,
|
||||
final String searchQuery,
|
||||
final bool working,
|
||||
final List<SearchResult> searchResults}) = _$AnimeSearchStateImpl;
|
||||
|
||||
@override
|
||||
TrackingMediumType get trackingType;
|
||||
@override
|
||||
String get searchQuery;
|
||||
@override
|
||||
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(includeFromJson: false, includeToJson: false)
|
||||
_$$AnimeSearchStateImplCopyWith<_$AnimeSearchStateImpl> get copyWith =>
|
||||
throw _privateConstructorUsedError;
|
||||
}
|
||||
// dart format on
|
||||
|
||||
Reference in New Issue
Block a user