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,102 +9,64 @@ part of 'anime_list_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 _$AnimeListState {
|
||||
bool get buttonVisibility => throw _privateConstructorUsedError;
|
||||
List<AnimeTrackingData> get animes => throw _privateConstructorUsedError;
|
||||
List<MangaTrackingData> get mangas => throw _privateConstructorUsedError;
|
||||
MediumTrackingState get animeFilterState =>
|
||||
throw _privateConstructorUsedError;
|
||||
MediumTrackingState get mangaFilterState =>
|
||||
throw _privateConstructorUsedError;
|
||||
TrackingMediumType get trackingType => throw _privateConstructorUsedError;
|
||||
bool get buttonVisibility;
|
||||
List<AnimeTrackingData> get animes;
|
||||
List<MangaTrackingData> get mangas;
|
||||
MediumTrackingState get animeFilterState;
|
||||
MediumTrackingState get mangaFilterState;
|
||||
TrackingMediumType get trackingType;
|
||||
|
||||
/// 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;
|
||||
}
|
||||
|
||||
/// @nodoc
|
||||
abstract class $AnimeListStateCopyWith<$Res> {
|
||||
factory $AnimeListStateCopyWith(
|
||||
AnimeListState value, $Res Function(AnimeListState) then) =
|
||||
_$AnimeListStateCopyWithImpl<$Res, AnimeListState>;
|
||||
@useResult
|
||||
$Res call(
|
||||
{bool buttonVisibility,
|
||||
List<AnimeTrackingData> animes,
|
||||
List<MangaTrackingData> mangas,
|
||||
MediumTrackingState animeFilterState,
|
||||
MediumTrackingState mangaFilterState,
|
||||
TrackingMediumType trackingType});
|
||||
}
|
||||
|
||||
/// @nodoc
|
||||
class _$AnimeListStateCopyWithImpl<$Res, $Val extends AnimeListState>
|
||||
implements $AnimeListStateCopyWith<$Res> {
|
||||
_$AnimeListStateCopyWithImpl(this._value, this._then);
|
||||
|
||||
// ignore: unused_field
|
||||
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')
|
||||
$AnimeListStateCopyWith<AnimeListState> get copyWith =>
|
||||
_$AnimeListStateCopyWithImpl<AnimeListState>(
|
||||
this as AnimeListState, _$identity);
|
||||
|
||||
@override
|
||||
$Res call({
|
||||
Object? buttonVisibility = null,
|
||||
Object? animes = null,
|
||||
Object? mangas = null,
|
||||
Object? animeFilterState = null,
|
||||
Object? mangaFilterState = null,
|
||||
Object? trackingType = null,
|
||||
}) {
|
||||
return _then(_value.copyWith(
|
||||
buttonVisibility: null == buttonVisibility
|
||||
? _value.buttonVisibility
|
||||
: buttonVisibility // ignore: cast_nullable_to_non_nullable
|
||||
as bool,
|
||||
animes: null == animes
|
||||
? _value.animes
|
||||
: animes // ignore: cast_nullable_to_non_nullable
|
||||
as List<AnimeTrackingData>,
|
||||
mangas: null == mangas
|
||||
? _value.mangas
|
||||
: mangas // ignore: cast_nullable_to_non_nullable
|
||||
as List<MangaTrackingData>,
|
||||
animeFilterState: null == animeFilterState
|
||||
? _value.animeFilterState
|
||||
: animeFilterState // ignore: cast_nullable_to_non_nullable
|
||||
as MediumTrackingState,
|
||||
mangaFilterState: null == mangaFilterState
|
||||
? _value.mangaFilterState
|
||||
: mangaFilterState // ignore: cast_nullable_to_non_nullable
|
||||
as MediumTrackingState,
|
||||
trackingType: null == trackingType
|
||||
? _value.trackingType
|
||||
: trackingType // ignore: cast_nullable_to_non_nullable
|
||||
as TrackingMediumType,
|
||||
) as $Val);
|
||||
bool operator ==(Object other) {
|
||||
return identical(this, other) ||
|
||||
(other.runtimeType == runtimeType &&
|
||||
other is AnimeListState &&
|
||||
(identical(other.buttonVisibility, buttonVisibility) ||
|
||||
other.buttonVisibility == buttonVisibility) &&
|
||||
const DeepCollectionEquality().equals(other.animes, animes) &&
|
||||
const DeepCollectionEquality().equals(other.mangas, mangas) &&
|
||||
(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,
|
||||
buttonVisibility,
|
||||
const DeepCollectionEquality().hash(animes),
|
||||
const DeepCollectionEquality().hash(mangas),
|
||||
animeFilterState,
|
||||
mangaFilterState,
|
||||
trackingType);
|
||||
|
||||
@override
|
||||
String toString() {
|
||||
return 'AnimeListState(buttonVisibility: $buttonVisibility, animes: $animes, mangas: $mangas, animeFilterState: $animeFilterState, mangaFilterState: $mangaFilterState, trackingType: $trackingType)';
|
||||
}
|
||||
}
|
||||
|
||||
/// @nodoc
|
||||
abstract class _$$AnimeListStateImplCopyWith<$Res>
|
||||
implements $AnimeListStateCopyWith<$Res> {
|
||||
factory _$$AnimeListStateImplCopyWith(_$AnimeListStateImpl value,
|
||||
$Res Function(_$AnimeListStateImpl) then) =
|
||||
__$$AnimeListStateImplCopyWithImpl<$Res>;
|
||||
@override
|
||||
abstract mixin class $AnimeListStateCopyWith<$Res> {
|
||||
factory $AnimeListStateCopyWith(
|
||||
AnimeListState value, $Res Function(AnimeListState) _then) =
|
||||
_$AnimeListStateCopyWithImpl;
|
||||
@useResult
|
||||
$Res call(
|
||||
{bool buttonVisibility,
|
||||
@@ -116,12 +78,12 @@ abstract class _$$AnimeListStateImplCopyWith<$Res>
|
||||
}
|
||||
|
||||
/// @nodoc
|
||||
class __$$AnimeListStateImplCopyWithImpl<$Res>
|
||||
extends _$AnimeListStateCopyWithImpl<$Res, _$AnimeListStateImpl>
|
||||
implements _$$AnimeListStateImplCopyWith<$Res> {
|
||||
__$$AnimeListStateImplCopyWithImpl(
|
||||
_$AnimeListStateImpl _value, $Res Function(_$AnimeListStateImpl) _then)
|
||||
: super(_value, _then);
|
||||
class _$AnimeListStateCopyWithImpl<$Res>
|
||||
implements $AnimeListStateCopyWith<$Res> {
|
||||
_$AnimeListStateCopyWithImpl(this._self, this._then);
|
||||
|
||||
final AnimeListState _self;
|
||||
final $Res Function(AnimeListState) _then;
|
||||
|
||||
/// Create a copy of AnimeListState
|
||||
/// with the given fields replaced by the non-null parameter values.
|
||||
@@ -135,39 +97,220 @@ class __$$AnimeListStateImplCopyWithImpl<$Res>
|
||||
Object? mangaFilterState = null,
|
||||
Object? trackingType = null,
|
||||
}) {
|
||||
return _then(_$AnimeListStateImpl(
|
||||
return _then(_self.copyWith(
|
||||
buttonVisibility: null == buttonVisibility
|
||||
? _value.buttonVisibility
|
||||
? _self.buttonVisibility
|
||||
: buttonVisibility // ignore: cast_nullable_to_non_nullable
|
||||
as bool,
|
||||
animes: null == animes
|
||||
? _value._animes
|
||||
? _self.animes
|
||||
: animes // ignore: cast_nullable_to_non_nullable
|
||||
as List<AnimeTrackingData>,
|
||||
mangas: null == mangas
|
||||
? _value._mangas
|
||||
? _self.mangas
|
||||
: mangas // ignore: cast_nullable_to_non_nullable
|
||||
as List<MangaTrackingData>,
|
||||
animeFilterState: null == animeFilterState
|
||||
? _value.animeFilterState
|
||||
? _self.animeFilterState
|
||||
: animeFilterState // ignore: cast_nullable_to_non_nullable
|
||||
as MediumTrackingState,
|
||||
mangaFilterState: null == mangaFilterState
|
||||
? _value.mangaFilterState
|
||||
? _self.mangaFilterState
|
||||
: mangaFilterState // ignore: cast_nullable_to_non_nullable
|
||||
as MediumTrackingState,
|
||||
trackingType: null == trackingType
|
||||
? _value.trackingType
|
||||
? _self.trackingType
|
||||
: trackingType // ignore: cast_nullable_to_non_nullable
|
||||
as TrackingMediumType,
|
||||
));
|
||||
}
|
||||
}
|
||||
|
||||
/// Adds pattern-matching-related methods to [AnimeListState].
|
||||
extension AnimeListStatePatterns on AnimeListState {
|
||||
/// 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(_AnimeListState value)? $default, {
|
||||
required TResult orElse(),
|
||||
}) {
|
||||
final _that = this;
|
||||
switch (_that) {
|
||||
case _AnimeListState() 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(_AnimeListState value) $default,
|
||||
) {
|
||||
final _that = this;
|
||||
switch (_that) {
|
||||
case _AnimeListState():
|
||||
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(_AnimeListState value)? $default,
|
||||
) {
|
||||
final _that = this;
|
||||
switch (_that) {
|
||||
case _AnimeListState() 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(
|
||||
bool buttonVisibility,
|
||||
List<AnimeTrackingData> animes,
|
||||
List<MangaTrackingData> mangas,
|
||||
MediumTrackingState animeFilterState,
|
||||
MediumTrackingState mangaFilterState,
|
||||
TrackingMediumType trackingType)?
|
||||
$default, {
|
||||
required TResult orElse(),
|
||||
}) {
|
||||
final _that = this;
|
||||
switch (_that) {
|
||||
case _AnimeListState() when $default != null:
|
||||
return $default(_that.buttonVisibility, _that.animes, _that.mangas,
|
||||
_that.animeFilterState, _that.mangaFilterState, _that.trackingType);
|
||||
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(
|
||||
bool buttonVisibility,
|
||||
List<AnimeTrackingData> animes,
|
||||
List<MangaTrackingData> mangas,
|
||||
MediumTrackingState animeFilterState,
|
||||
MediumTrackingState mangaFilterState,
|
||||
TrackingMediumType trackingType)
|
||||
$default,
|
||||
) {
|
||||
final _that = this;
|
||||
switch (_that) {
|
||||
case _AnimeListState():
|
||||
return $default(_that.buttonVisibility, _that.animes, _that.mangas,
|
||||
_that.animeFilterState, _that.mangaFilterState, _that.trackingType);
|
||||
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(
|
||||
bool buttonVisibility,
|
||||
List<AnimeTrackingData> animes,
|
||||
List<MangaTrackingData> mangas,
|
||||
MediumTrackingState animeFilterState,
|
||||
MediumTrackingState mangaFilterState,
|
||||
TrackingMediumType trackingType)?
|
||||
$default,
|
||||
) {
|
||||
final _that = this;
|
||||
switch (_that) {
|
||||
case _AnimeListState() when $default != null:
|
||||
return $default(_that.buttonVisibility, _that.animes, _that.mangas,
|
||||
_that.animeFilterState, _that.mangaFilterState, _that.trackingType);
|
||||
case _:
|
||||
return null;
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
/// @nodoc
|
||||
|
||||
class _$AnimeListStateImpl implements _AnimeListState {
|
||||
_$AnimeListStateImpl(
|
||||
class _AnimeListState implements AnimeListState {
|
||||
_AnimeListState(
|
||||
{this.buttonVisibility = true,
|
||||
final List<AnimeTrackingData> animes = const [],
|
||||
final List<MangaTrackingData> mangas = const [],
|
||||
@@ -208,16 +351,19 @@ class _$AnimeListStateImpl implements _AnimeListState {
|
||||
@JsonKey()
|
||||
final TrackingMediumType trackingType;
|
||||
|
||||
/// Create a copy of AnimeListState
|
||||
/// with the given fields replaced by the non-null parameter values.
|
||||
@override
|
||||
String toString() {
|
||||
return 'AnimeListState(buttonVisibility: $buttonVisibility, animes: $animes, mangas: $mangas, animeFilterState: $animeFilterState, mangaFilterState: $mangaFilterState, trackingType: $trackingType)';
|
||||
}
|
||||
@JsonKey(includeFromJson: false, includeToJson: false)
|
||||
@pragma('vm:prefer-inline')
|
||||
_$AnimeListStateCopyWith<_AnimeListState> get copyWith =>
|
||||
__$AnimeListStateCopyWithImpl<_AnimeListState>(this, _$identity);
|
||||
|
||||
@override
|
||||
bool operator ==(Object other) {
|
||||
return identical(this, other) ||
|
||||
(other.runtimeType == runtimeType &&
|
||||
other is _$AnimeListStateImpl &&
|
||||
other is _AnimeListState &&
|
||||
(identical(other.buttonVisibility, buttonVisibility) ||
|
||||
other.buttonVisibility == buttonVisibility) &&
|
||||
const DeepCollectionEquality().equals(other._animes, _animes) &&
|
||||
@@ -240,42 +386,76 @@ class _$AnimeListStateImpl implements _AnimeListState {
|
||||
mangaFilterState,
|
||||
trackingType);
|
||||
|
||||
@override
|
||||
String toString() {
|
||||
return 'AnimeListState(buttonVisibility: $buttonVisibility, animes: $animes, mangas: $mangas, animeFilterState: $animeFilterState, mangaFilterState: $mangaFilterState, trackingType: $trackingType)';
|
||||
}
|
||||
}
|
||||
|
||||
/// @nodoc
|
||||
abstract mixin class _$AnimeListStateCopyWith<$Res>
|
||||
implements $AnimeListStateCopyWith<$Res> {
|
||||
factory _$AnimeListStateCopyWith(
|
||||
_AnimeListState value, $Res Function(_AnimeListState) _then) =
|
||||
__$AnimeListStateCopyWithImpl;
|
||||
@override
|
||||
@useResult
|
||||
$Res call(
|
||||
{bool buttonVisibility,
|
||||
List<AnimeTrackingData> animes,
|
||||
List<MangaTrackingData> mangas,
|
||||
MediumTrackingState animeFilterState,
|
||||
MediumTrackingState mangaFilterState,
|
||||
TrackingMediumType trackingType});
|
||||
}
|
||||
|
||||
/// @nodoc
|
||||
class __$AnimeListStateCopyWithImpl<$Res>
|
||||
implements _$AnimeListStateCopyWith<$Res> {
|
||||
__$AnimeListStateCopyWithImpl(this._self, this._then);
|
||||
|
||||
final _AnimeListState _self;
|
||||
final $Res Function(_AnimeListState) _then;
|
||||
|
||||
/// Create a copy of AnimeListState
|
||||
/// with the given fields replaced by the non-null parameter values.
|
||||
@JsonKey(includeFromJson: false, includeToJson: false)
|
||||
@override
|
||||
@pragma('vm:prefer-inline')
|
||||
_$$AnimeListStateImplCopyWith<_$AnimeListStateImpl> get copyWith =>
|
||||
__$$AnimeListStateImplCopyWithImpl<_$AnimeListStateImpl>(
|
||||
this, _$identity);
|
||||
$Res call({
|
||||
Object? buttonVisibility = null,
|
||||
Object? animes = null,
|
||||
Object? mangas = null,
|
||||
Object? animeFilterState = null,
|
||||
Object? mangaFilterState = null,
|
||||
Object? trackingType = null,
|
||||
}) {
|
||||
return _then(_AnimeListState(
|
||||
buttonVisibility: null == buttonVisibility
|
||||
? _self.buttonVisibility
|
||||
: buttonVisibility // ignore: cast_nullable_to_non_nullable
|
||||
as bool,
|
||||
animes: null == animes
|
||||
? _self._animes
|
||||
: animes // ignore: cast_nullable_to_non_nullable
|
||||
as List<AnimeTrackingData>,
|
||||
mangas: null == mangas
|
||||
? _self._mangas
|
||||
: mangas // ignore: cast_nullable_to_non_nullable
|
||||
as List<MangaTrackingData>,
|
||||
animeFilterState: null == animeFilterState
|
||||
? _self.animeFilterState
|
||||
: animeFilterState // ignore: cast_nullable_to_non_nullable
|
||||
as MediumTrackingState,
|
||||
mangaFilterState: null == mangaFilterState
|
||||
? _self.mangaFilterState
|
||||
: mangaFilterState // ignore: cast_nullable_to_non_nullable
|
||||
as MediumTrackingState,
|
||||
trackingType: null == trackingType
|
||||
? _self.trackingType
|
||||
: trackingType // ignore: cast_nullable_to_non_nullable
|
||||
as TrackingMediumType,
|
||||
));
|
||||
}
|
||||
}
|
||||
|
||||
abstract class _AnimeListState implements AnimeListState {
|
||||
factory _AnimeListState(
|
||||
{final bool buttonVisibility,
|
||||
final List<AnimeTrackingData> animes,
|
||||
final List<MangaTrackingData> mangas,
|
||||
final MediumTrackingState animeFilterState,
|
||||
final MediumTrackingState mangaFilterState,
|
||||
final TrackingMediumType trackingType}) = _$AnimeListStateImpl;
|
||||
|
||||
@override
|
||||
bool get buttonVisibility;
|
||||
@override
|
||||
List<AnimeTrackingData> get animes;
|
||||
@override
|
||||
List<MangaTrackingData> get mangas;
|
||||
@override
|
||||
MediumTrackingState get animeFilterState;
|
||||
@override
|
||||
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(includeFromJson: false, includeToJson: false)
|
||||
_$$AnimeListStateImplCopyWith<_$AnimeListStateImpl> get copyWith =>
|
||||
throw _privateConstructorUsedError;
|
||||
}
|
||||
// dart format on
|
||||
|
||||
Reference in New Issue
Block a user