fix: Fix build with newer versions of Flutter

This commit is contained in:
PapaTutuWawa 2024-09-29 12:54:33 +02:00
parent 6375fb32a5
commit 3a977688c8
17 changed files with 935 additions and 804 deletions

View File

@ -1,3 +1,9 @@
plugins {
id "com.android.application"
id "kotlin-android"
id "dev.flutter.flutter-gradle-plugin"
}
def localProperties = new Properties() def localProperties = new Properties()
def localPropertiesFile = rootProject.file('local.properties') def localPropertiesFile = rootProject.file('local.properties')
if (localPropertiesFile.exists()) { if (localPropertiesFile.exists()) {
@ -6,11 +12,6 @@ if (localPropertiesFile.exists()) {
} }
} }
def flutterRoot = localProperties.getProperty('flutter.sdk')
if (flutterRoot == null) {
throw new GradleException("Flutter SDK not found. Define location with flutter.sdk in the local.properties file.")
}
def flutterVersionCode = localProperties.getProperty('flutter.versionCode') def flutterVersionCode = localProperties.getProperty('flutter.versionCode')
if (flutterVersionCode == null) { if (flutterVersionCode == null) {
flutterVersionCode = '1' flutterVersionCode = '1'
@ -21,12 +22,8 @@ if (flutterVersionName == null) {
flutterVersionName = '1.0' flutterVersionName = '1.0'
} }
apply plugin: 'com.android.application'
apply plugin: 'kotlin-android'
apply from: "$flutterRoot/packages/flutter_tools/gradle/flutter.gradle"
android { android {
compileSdkVersion 33 compileSdkVersion 34
ndkVersion flutter.ndkVersion ndkVersion flutter.ndkVersion
compileOptions { compileOptions {
@ -62,7 +59,3 @@ android {
flutter { flutter {
source '../..' source '../..'
} }
dependencies {
implementation "org.jetbrains.kotlin:kotlin-stdlib-jdk7:$kotlin_version"
}

View File

@ -1,16 +1,3 @@
buildscript {
ext.kotlin_version = '1.6.10'
repositories {
google()
mavenCentral()
}
dependencies {
classpath 'com.android.tools.build:gradle:7.1.2'
classpath "org.jetbrains.kotlin:kotlin-gradle-plugin:$kotlin_version"
}
}
allprojects { allprojects {
repositories { repositories {
google() google()

View File

@ -1,11 +1,25 @@
include ':app' pluginManagement {
def flutterSdkPath = {
def properties = new Properties()
file("local.properties").withInputStream { properties.load(it) }
def flutterSdkPath = properties.getProperty("flutter.sdk")
assert flutterSdkPath != null, "flutter.sdk not set in local.properties"
return flutterSdkPath
}()
def localPropertiesFile = new File(rootProject.projectDir, "local.properties") includeBuild("$flutterSdkPath/packages/flutter_tools/gradle")
def properties = new Properties()
assert localPropertiesFile.exists() repositories {
localPropertiesFile.withReader("UTF-8") { reader -> properties.load(reader) } google()
mavenCentral()
gradlePluginPortal()
}
}
def flutterSdkPath = properties.getProperty("flutter.sdk") plugins {
assert flutterSdkPath != null, "flutter.sdk not set in local.properties" id "dev.flutter.flutter-plugin-loader" version "1.0.0"
apply from: "$flutterSdkPath/packages/flutter_tools/gradle/app_plugin_loader.gradle" id "com.android.application" version "7.3.0" apply false
id "org.jetbrains.kotlin.android" version "1.7.10" apply false
}
include ":app"

View File

@ -146,11 +146,11 @@
}, },
"nixpkgs_3": { "nixpkgs_3": {
"locked": { "locked": {
"lastModified": 1689631193, "lastModified": 1727586919,
"narHash": "sha256-AGSkBZaiTODQc8eT1rZDrQIjtb8JtFwJ0wVPzArlrnM=", "narHash": "sha256-e/YXG0tO5GWHDS8QQauj8aj4HhXEm602q9swrrlTlKQ=",
"owner": "NixOS", "owner": "NixOS",
"repo": "nixpkgs", "repo": "nixpkgs",
"rev": "57695599bdc4f7bfe5d28cfa23f14b3d8bdf8a5f", "rev": "2dcd9c55e8914017226f5948ac22c53872a13ee2",
"type": "github" "type": "github"
}, },
"original": { "original": {

View File

@ -28,14 +28,15 @@
platform-tools platform-tools
emulator emulator
patcher-v4 patcher-v4
platforms-android-30 #platforms-android-30
platforms-android-31 platforms-android-31
platforms-android-33 platforms-android-33
platforms-android-34
]); ]);
in { in {
devShell = pkgs.mkShell { devShell = pkgs.mkShell {
buildInputs = with pkgs; [ buildInputs = with pkgs; [
# Android # Android
sdk sdk
# Flutter # Flutter

View File

@ -1,7 +1,7 @@
// coverage:ignore-file // coverage:ignore-file
// GENERATED CODE - DO NOT MODIFY BY HAND // GENERATED CODE - DO NOT MODIFY BY HAND
// ignore_for_file: type=lint // 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.dart'; part of 'anime.dart';
@ -12,7 +12,7 @@ part of 'anime.dart';
T _$identity<T>(T value) => value; T _$identity<T>(T value) => value;
final _privateConstructorUsedError = UnsupportedError( 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');
AnimeTrackingData _$AnimeTrackingDataFromJson(Map<String, dynamic> json) { AnimeTrackingData _$AnimeTrackingDataFromJson(Map<String, dynamic> json) {
return _AnimeTrackingData.fromJson(json); return _AnimeTrackingData.fromJson(json);
@ -46,8 +46,12 @@ mixin _$AnimeTrackingData {
/// The day of the week the anime is airing /// The day of the week the anime is airing
String? get broadcastDay => throw _privateConstructorUsedError; String? get broadcastDay => throw _privateConstructorUsedError;
/// Serializes this AnimeTrackingData to a JSON map.
Map<String, dynamic> toJson() => throw _privateConstructorUsedError; Map<String, dynamic> toJson() => throw _privateConstructorUsedError;
@JsonKey(ignore: true)
/// Create a copy of AnimeTrackingData
/// with the given fields replaced by the non-null parameter values.
@JsonKey(includeFromJson: false, includeToJson: false)
$AnimeTrackingDataCopyWith<AnimeTrackingData> get copyWith => $AnimeTrackingDataCopyWith<AnimeTrackingData> get copyWith =>
throw _privateConstructorUsedError; throw _privateConstructorUsedError;
} }
@ -56,7 +60,8 @@ mixin _$AnimeTrackingData {
abstract class $AnimeTrackingDataCopyWith<$Res> { abstract class $AnimeTrackingDataCopyWith<$Res> {
factory $AnimeTrackingDataCopyWith( factory $AnimeTrackingDataCopyWith(
AnimeTrackingData value, $Res Function(AnimeTrackingData) then) = AnimeTrackingData value, $Res Function(AnimeTrackingData) then) =
_$AnimeTrackingDataCopyWithImpl<$Res>; _$AnimeTrackingDataCopyWithImpl<$Res, AnimeTrackingData>;
@useResult
$Res call( $Res call(
{String id, {String id,
@MediumTrackingStateConverter() MediumTrackingState state, @MediumTrackingStateConverter() MediumTrackingState state,
@ -69,69 +74,74 @@ abstract class $AnimeTrackingDataCopyWith<$Res> {
} }
/// @nodoc /// @nodoc
class _$AnimeTrackingDataCopyWithImpl<$Res> class _$AnimeTrackingDataCopyWithImpl<$Res, $Val extends AnimeTrackingData>
implements $AnimeTrackingDataCopyWith<$Res> { implements $AnimeTrackingDataCopyWith<$Res> {
_$AnimeTrackingDataCopyWithImpl(this._value, this._then); _$AnimeTrackingDataCopyWithImpl(this._value, this._then);
final AnimeTrackingData _value;
// ignore: unused_field // ignore: unused_field
final $Res Function(AnimeTrackingData) _then; final $Val _value;
// ignore: unused_field
final $Res Function($Val) _then;
/// Create a copy of AnimeTrackingData
/// with the given fields replaced by the non-null parameter values.
@pragma('vm:prefer-inline')
@override @override
$Res call({ $Res call({
Object? id = freezed, Object? id = null,
Object? state = freezed, Object? state = null,
Object? title = freezed, Object? title = null,
Object? episodesWatched = freezed, Object? episodesWatched = null,
Object? episodesTotal = freezed, Object? episodesTotal = freezed,
Object? thumbnailUrl = freezed, Object? thumbnailUrl = null,
Object? airing = freezed, Object? airing = null,
Object? broadcastDay = freezed, Object? broadcastDay = freezed,
}) { }) {
return _then(_value.copyWith( return _then(_value.copyWith(
id: id == freezed id: null == id
? _value.id ? _value.id
: id // ignore: cast_nullable_to_non_nullable : id // ignore: cast_nullable_to_non_nullable
as String, as String,
state: state == freezed state: null == state
? _value.state ? _value.state
: state // ignore: cast_nullable_to_non_nullable : state // ignore: cast_nullable_to_non_nullable
as MediumTrackingState, as MediumTrackingState,
title: title == freezed title: null == title
? _value.title ? _value.title
: title // ignore: cast_nullable_to_non_nullable : title // ignore: cast_nullable_to_non_nullable
as String, as String,
episodesWatched: episodesWatched == freezed episodesWatched: null == episodesWatched
? _value.episodesWatched ? _value.episodesWatched
: episodesWatched // ignore: cast_nullable_to_non_nullable : episodesWatched // ignore: cast_nullable_to_non_nullable
as int, as int,
episodesTotal: episodesTotal == freezed episodesTotal: freezed == episodesTotal
? _value.episodesTotal ? _value.episodesTotal
: episodesTotal // ignore: cast_nullable_to_non_nullable : episodesTotal // ignore: cast_nullable_to_non_nullable
as int?, as int?,
thumbnailUrl: thumbnailUrl == freezed thumbnailUrl: null == thumbnailUrl
? _value.thumbnailUrl ? _value.thumbnailUrl
: thumbnailUrl // ignore: cast_nullable_to_non_nullable : thumbnailUrl // ignore: cast_nullable_to_non_nullable
as String, as String,
airing: airing == freezed airing: null == airing
? _value.airing ? _value.airing
: airing // ignore: cast_nullable_to_non_nullable : airing // ignore: cast_nullable_to_non_nullable
as bool, as bool,
broadcastDay: broadcastDay == freezed broadcastDay: freezed == broadcastDay
? _value.broadcastDay ? _value.broadcastDay
: broadcastDay // ignore: cast_nullable_to_non_nullable : broadcastDay // ignore: cast_nullable_to_non_nullable
as String?, as String?,
)); ) as $Val);
} }
} }
/// @nodoc /// @nodoc
abstract class _$$_AnimeTrackingDataCopyWith<$Res> abstract class _$$AnimeTrackingDataImplCopyWith<$Res>
implements $AnimeTrackingDataCopyWith<$Res> { implements $AnimeTrackingDataCopyWith<$Res> {
factory _$$_AnimeTrackingDataCopyWith(_$_AnimeTrackingData value, factory _$$AnimeTrackingDataImplCopyWith(_$AnimeTrackingDataImpl value,
$Res Function(_$_AnimeTrackingData) then) = $Res Function(_$AnimeTrackingDataImpl) then) =
__$$_AnimeTrackingDataCopyWithImpl<$Res>; __$$AnimeTrackingDataImplCopyWithImpl<$Res>;
@override @override
@useResult
$Res call( $Res call(
{String id, {String id,
@MediumTrackingStateConverter() MediumTrackingState state, @MediumTrackingStateConverter() MediumTrackingState state,
@ -144,57 +154,57 @@ abstract class _$$_AnimeTrackingDataCopyWith<$Res>
} }
/// @nodoc /// @nodoc
class __$$_AnimeTrackingDataCopyWithImpl<$Res> class __$$AnimeTrackingDataImplCopyWithImpl<$Res>
extends _$AnimeTrackingDataCopyWithImpl<$Res> extends _$AnimeTrackingDataCopyWithImpl<$Res, _$AnimeTrackingDataImpl>
implements _$$_AnimeTrackingDataCopyWith<$Res> { implements _$$AnimeTrackingDataImplCopyWith<$Res> {
__$$_AnimeTrackingDataCopyWithImpl( __$$AnimeTrackingDataImplCopyWithImpl(_$AnimeTrackingDataImpl _value,
_$_AnimeTrackingData _value, $Res Function(_$_AnimeTrackingData) _then) $Res Function(_$AnimeTrackingDataImpl) _then)
: super(_value, (v) => _then(v as _$_AnimeTrackingData)); : super(_value, _then);
@override
_$_AnimeTrackingData get _value => super._value as _$_AnimeTrackingData;
/// Create a copy of AnimeTrackingData
/// with the given fields replaced by the non-null parameter values.
@pragma('vm:prefer-inline')
@override @override
$Res call({ $Res call({
Object? id = freezed, Object? id = null,
Object? state = freezed, Object? state = null,
Object? title = freezed, Object? title = null,
Object? episodesWatched = freezed, Object? episodesWatched = null,
Object? episodesTotal = freezed, Object? episodesTotal = freezed,
Object? thumbnailUrl = freezed, Object? thumbnailUrl = null,
Object? airing = freezed, Object? airing = null,
Object? broadcastDay = freezed, Object? broadcastDay = freezed,
}) { }) {
return _then(_$_AnimeTrackingData( return _then(_$AnimeTrackingDataImpl(
id == freezed null == id
? _value.id ? _value.id
: id // ignore: cast_nullable_to_non_nullable : id // ignore: cast_nullable_to_non_nullable
as String, as String,
state == freezed null == state
? _value.state ? _value.state
: state // ignore: cast_nullable_to_non_nullable : state // ignore: cast_nullable_to_non_nullable
as MediumTrackingState, as MediumTrackingState,
title == freezed null == title
? _value.title ? _value.title
: title // ignore: cast_nullable_to_non_nullable : title // ignore: cast_nullable_to_non_nullable
as String, as String,
episodesWatched == freezed null == episodesWatched
? _value.episodesWatched ? _value.episodesWatched
: episodesWatched // ignore: cast_nullable_to_non_nullable : episodesWatched // ignore: cast_nullable_to_non_nullable
as int, as int,
episodesTotal == freezed freezed == episodesTotal
? _value.episodesTotal ? _value.episodesTotal
: episodesTotal // ignore: cast_nullable_to_non_nullable : episodesTotal // ignore: cast_nullable_to_non_nullable
as int?, as int?,
thumbnailUrl == freezed null == thumbnailUrl
? _value.thumbnailUrl ? _value.thumbnailUrl
: thumbnailUrl // ignore: cast_nullable_to_non_nullable : thumbnailUrl // ignore: cast_nullable_to_non_nullable
as String, as String,
airing == freezed null == airing
? _value.airing ? _value.airing
: airing // ignore: cast_nullable_to_non_nullable : airing // ignore: cast_nullable_to_non_nullable
as bool, as bool,
broadcastDay == freezed freezed == broadcastDay
? _value.broadcastDay ? _value.broadcastDay
: broadcastDay // ignore: cast_nullable_to_non_nullable : broadcastDay // ignore: cast_nullable_to_non_nullable
as String?, as String?,
@ -204,8 +214,8 @@ class __$$_AnimeTrackingDataCopyWithImpl<$Res>
/// @nodoc /// @nodoc
@JsonSerializable() @JsonSerializable()
class _$_AnimeTrackingData implements _AnimeTrackingData { class _$AnimeTrackingDataImpl implements _AnimeTrackingData {
_$_AnimeTrackingData( _$AnimeTrackingDataImpl(
this.id, this.id,
@MediumTrackingStateConverter() this.state, @MediumTrackingStateConverter() this.state,
this.title, this.title,
@ -215,8 +225,8 @@ class _$_AnimeTrackingData implements _AnimeTrackingData {
@BoolConverter() this.airing, @BoolConverter() this.airing,
this.broadcastDay); this.broadcastDay);
factory _$_AnimeTrackingData.fromJson(Map<String, dynamic> json) => factory _$AnimeTrackingDataImpl.fromJson(Map<String, dynamic> json) =>
_$$_AnimeTrackingDataFromJson(json); _$$AnimeTrackingDataImplFromJson(json);
/// The ID of the anime /// The ID of the anime
@override @override
@ -258,46 +268,41 @@ class _$_AnimeTrackingData implements _AnimeTrackingData {
} }
@override @override
bool operator ==(dynamic other) { bool operator ==(Object other) {
return identical(this, other) || return identical(this, other) ||
(other.runtimeType == runtimeType && (other.runtimeType == runtimeType &&
other is _$_AnimeTrackingData && other is _$AnimeTrackingDataImpl &&
const DeepCollectionEquality().equals(other.id, id) && (identical(other.id, id) || other.id == id) &&
const DeepCollectionEquality().equals(other.state, state) && (identical(other.state, state) || other.state == state) &&
const DeepCollectionEquality().equals(other.title, title) && (identical(other.title, title) || other.title == title) &&
const DeepCollectionEquality() (identical(other.episodesWatched, episodesWatched) ||
.equals(other.episodesWatched, episodesWatched) && other.episodesWatched == episodesWatched) &&
const DeepCollectionEquality() (identical(other.episodesTotal, episodesTotal) ||
.equals(other.episodesTotal, episodesTotal) && other.episodesTotal == episodesTotal) &&
const DeepCollectionEquality() (identical(other.thumbnailUrl, thumbnailUrl) ||
.equals(other.thumbnailUrl, thumbnailUrl) && other.thumbnailUrl == thumbnailUrl) &&
const DeepCollectionEquality().equals(other.airing, airing) && (identical(other.airing, airing) || other.airing == airing) &&
const DeepCollectionEquality() (identical(other.broadcastDay, broadcastDay) ||
.equals(other.broadcastDay, broadcastDay)); other.broadcastDay == broadcastDay));
} }
@JsonKey(ignore: true) @JsonKey(includeFromJson: false, includeToJson: false)
@override @override
int get hashCode => Object.hash( int get hashCode => Object.hash(runtimeType, id, state, title,
runtimeType, episodesWatched, episodesTotal, thumbnailUrl, airing, broadcastDay);
const DeepCollectionEquality().hash(id),
const DeepCollectionEquality().hash(state),
const DeepCollectionEquality().hash(title),
const DeepCollectionEquality().hash(episodesWatched),
const DeepCollectionEquality().hash(episodesTotal),
const DeepCollectionEquality().hash(thumbnailUrl),
const DeepCollectionEquality().hash(airing),
const DeepCollectionEquality().hash(broadcastDay));
@JsonKey(ignore: true) /// Create a copy of AnimeTrackingData
/// with the given fields replaced by the non-null parameter values.
@JsonKey(includeFromJson: false, includeToJson: false)
@override @override
_$$_AnimeTrackingDataCopyWith<_$_AnimeTrackingData> get copyWith => @pragma('vm:prefer-inline')
__$$_AnimeTrackingDataCopyWithImpl<_$_AnimeTrackingData>( _$$AnimeTrackingDataImplCopyWith<_$AnimeTrackingDataImpl> get copyWith =>
__$$AnimeTrackingDataImplCopyWithImpl<_$AnimeTrackingDataImpl>(
this, _$identity); this, _$identity);
@override @override
Map<String, dynamic> toJson() { Map<String, dynamic> toJson() {
return _$$_AnimeTrackingDataToJson( return _$$AnimeTrackingDataImplToJson(
this, this,
); );
} }
@ -312,47 +317,49 @@ abstract class _AnimeTrackingData implements AnimeTrackingData {
final int? episodesTotal, final int? episodesTotal,
final String thumbnailUrl, final String thumbnailUrl,
@BoolConverter() final bool airing, @BoolConverter() final bool airing,
final String? broadcastDay) = _$_AnimeTrackingData; final String? broadcastDay) = _$AnimeTrackingDataImpl;
factory _AnimeTrackingData.fromJson(Map<String, dynamic> json) = factory _AnimeTrackingData.fromJson(Map<String, dynamic> json) =
_$_AnimeTrackingData.fromJson; _$AnimeTrackingDataImpl.fromJson;
@override
/// The ID of the anime /// The ID of the anime
String get id;
@override @override
String get id;
/// The state of the anime /// The state of the anime
@override
@MediumTrackingStateConverter() @MediumTrackingStateConverter()
MediumTrackingState get state; MediumTrackingState get state;
@override
/// The title of the anime /// The title of the anime
String get title;
@override @override
String get title;
/// Episodes in total. /// Episodes in total.
int get episodesWatched;
@override @override
int get episodesWatched;
/// Episodes watched. /// Episodes watched.
int? get episodesTotal;
@override @override
int? get episodesTotal;
/// URL to the thumbnail/cover art for the anime. /// URL to the thumbnail/cover art for the anime.
String get thumbnailUrl;
@override @override
String get thumbnailUrl;
/// Flag whether the anime is airing /// Flag whether the anime is airing
@override
@BoolConverter() @BoolConverter()
bool get airing; bool get airing;
@override
/// The day of the week the anime is airing /// The day of the week the anime is airing
String? get broadcastDay;
@override @override
@JsonKey(ignore: true) String? get broadcastDay;
_$$_AnimeTrackingDataCopyWith<_$_AnimeTrackingData> get copyWith =>
/// Create a copy of AnimeTrackingData
/// with the given fields replaced by the non-null parameter values.
@override
@JsonKey(includeFromJson: false, includeToJson: false)
_$$AnimeTrackingDataImplCopyWith<_$AnimeTrackingDataImpl> get copyWith =>
throw _privateConstructorUsedError; throw _privateConstructorUsedError;
} }

View File

@ -6,20 +6,22 @@ part of 'anime.dart';
// JsonSerializableGenerator // JsonSerializableGenerator
// ************************************************************************** // **************************************************************************
_$_AnimeTrackingData _$$_AnimeTrackingDataFromJson(Map<String, dynamic> json) => _$AnimeTrackingDataImpl _$$AnimeTrackingDataImplFromJson(
_$_AnimeTrackingData( Map<String, dynamic> json) =>
_$AnimeTrackingDataImpl(
json['id'] as String, json['id'] as String,
const MediumTrackingStateConverter().fromJson(json['state'] as int), const MediumTrackingStateConverter()
.fromJson((json['state'] as num).toInt()),
json['title'] as String, json['title'] as String,
json['episodesWatched'] as int, (json['episodesWatched'] as num).toInt(),
json['episodesTotal'] as int?, (json['episodesTotal'] as num?)?.toInt(),
json['thumbnailUrl'] as String, json['thumbnailUrl'] as String,
const BoolConverter().fromJson(json['airing'] as int), const BoolConverter().fromJson((json['airing'] as num).toInt()),
json['broadcastDay'] as String?, json['broadcastDay'] as String?,
); );
Map<String, dynamic> _$$_AnimeTrackingDataToJson( Map<String, dynamic> _$$AnimeTrackingDataImplToJson(
_$_AnimeTrackingData instance) => _$AnimeTrackingDataImpl instance) =>
<String, dynamic>{ <String, dynamic>{
'id': instance.id, 'id': instance.id,
'state': const MediumTrackingStateConverter().toJson(instance.state), 'state': const MediumTrackingStateConverter().toJson(instance.state),

View File

@ -1,7 +1,7 @@
// coverage:ignore-file // coverage:ignore-file
// GENERATED CODE - DO NOT MODIFY BY HAND // GENERATED CODE - DO NOT MODIFY BY HAND
// ignore_for_file: type=lint // 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 'manga.dart'; part of 'manga.dart';
@ -12,7 +12,7 @@ part of 'manga.dart';
T _$identity<T>(T value) => value; T _$identity<T>(T value) => value;
final _privateConstructorUsedError = UnsupportedError( 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');
MangaTrackingData _$MangaTrackingDataFromJson(Map<String, dynamic> json) { MangaTrackingData _$MangaTrackingDataFromJson(Map<String, dynamic> json) {
return _MangaTrackingData.fromJson(json); return _MangaTrackingData.fromJson(json);
@ -42,8 +42,12 @@ mixin _$MangaTrackingData {
/// URL to the thumbnail/cover art for the manga. /// URL to the thumbnail/cover art for the manga.
String get thumbnailUrl => throw _privateConstructorUsedError; String get thumbnailUrl => throw _privateConstructorUsedError;
/// Serializes this MangaTrackingData to a JSON map.
Map<String, dynamic> toJson() => throw _privateConstructorUsedError; Map<String, dynamic> toJson() => throw _privateConstructorUsedError;
@JsonKey(ignore: true)
/// Create a copy of MangaTrackingData
/// with the given fields replaced by the non-null parameter values.
@JsonKey(includeFromJson: false, includeToJson: false)
$MangaTrackingDataCopyWith<MangaTrackingData> get copyWith => $MangaTrackingDataCopyWith<MangaTrackingData> get copyWith =>
throw _privateConstructorUsedError; throw _privateConstructorUsedError;
} }
@ -52,7 +56,8 @@ mixin _$MangaTrackingData {
abstract class $MangaTrackingDataCopyWith<$Res> { abstract class $MangaTrackingDataCopyWith<$Res> {
factory $MangaTrackingDataCopyWith( factory $MangaTrackingDataCopyWith(
MangaTrackingData value, $Res Function(MangaTrackingData) then) = MangaTrackingData value, $Res Function(MangaTrackingData) then) =
_$MangaTrackingDataCopyWithImpl<$Res>; _$MangaTrackingDataCopyWithImpl<$Res, MangaTrackingData>;
@useResult
$Res call( $Res call(
{String id, {String id,
@MediumTrackingStateConverter() MediumTrackingState state, @MediumTrackingStateConverter() MediumTrackingState state,
@ -64,64 +69,69 @@ abstract class $MangaTrackingDataCopyWith<$Res> {
} }
/// @nodoc /// @nodoc
class _$MangaTrackingDataCopyWithImpl<$Res> class _$MangaTrackingDataCopyWithImpl<$Res, $Val extends MangaTrackingData>
implements $MangaTrackingDataCopyWith<$Res> { implements $MangaTrackingDataCopyWith<$Res> {
_$MangaTrackingDataCopyWithImpl(this._value, this._then); _$MangaTrackingDataCopyWithImpl(this._value, this._then);
final MangaTrackingData _value;
// ignore: unused_field // ignore: unused_field
final $Res Function(MangaTrackingData) _then; final $Val _value;
// ignore: unused_field
final $Res Function($Val) _then;
/// Create a copy of MangaTrackingData
/// with the given fields replaced by the non-null parameter values.
@pragma('vm:prefer-inline')
@override @override
$Res call({ $Res call({
Object? id = freezed, Object? id = null,
Object? state = freezed, Object? state = null,
Object? title = freezed, Object? title = null,
Object? chaptersRead = freezed, Object? chaptersRead = null,
Object? volumesOwned = freezed, Object? volumesOwned = null,
Object? chaptersTotal = freezed, Object? chaptersTotal = freezed,
Object? thumbnailUrl = freezed, Object? thumbnailUrl = null,
}) { }) {
return _then(_value.copyWith( return _then(_value.copyWith(
id: id == freezed id: null == id
? _value.id ? _value.id
: id // ignore: cast_nullable_to_non_nullable : id // ignore: cast_nullable_to_non_nullable
as String, as String,
state: state == freezed state: null == state
? _value.state ? _value.state
: state // ignore: cast_nullable_to_non_nullable : state // ignore: cast_nullable_to_non_nullable
as MediumTrackingState, as MediumTrackingState,
title: title == freezed title: null == title
? _value.title ? _value.title
: title // ignore: cast_nullable_to_non_nullable : title // ignore: cast_nullable_to_non_nullable
as String, as String,
chaptersRead: chaptersRead == freezed chaptersRead: null == chaptersRead
? _value.chaptersRead ? _value.chaptersRead
: chaptersRead // ignore: cast_nullable_to_non_nullable : chaptersRead // ignore: cast_nullable_to_non_nullable
as int, as int,
volumesOwned: volumesOwned == freezed volumesOwned: null == volumesOwned
? _value.volumesOwned ? _value.volumesOwned
: volumesOwned // ignore: cast_nullable_to_non_nullable : volumesOwned // ignore: cast_nullable_to_non_nullable
as int, as int,
chaptersTotal: chaptersTotal == freezed chaptersTotal: freezed == chaptersTotal
? _value.chaptersTotal ? _value.chaptersTotal
: chaptersTotal // ignore: cast_nullable_to_non_nullable : chaptersTotal // ignore: cast_nullable_to_non_nullable
as int?, as int?,
thumbnailUrl: thumbnailUrl == freezed thumbnailUrl: null == thumbnailUrl
? _value.thumbnailUrl ? _value.thumbnailUrl
: thumbnailUrl // ignore: cast_nullable_to_non_nullable : thumbnailUrl // ignore: cast_nullable_to_non_nullable
as String, as String,
)); ) as $Val);
} }
} }
/// @nodoc /// @nodoc
abstract class _$$_MangaTrackingDataCopyWith<$Res> abstract class _$$MangaTrackingDataImplCopyWith<$Res>
implements $MangaTrackingDataCopyWith<$Res> { implements $MangaTrackingDataCopyWith<$Res> {
factory _$$_MangaTrackingDataCopyWith(_$_MangaTrackingData value, factory _$$MangaTrackingDataImplCopyWith(_$MangaTrackingDataImpl value,
$Res Function(_$_MangaTrackingData) then) = $Res Function(_$MangaTrackingDataImpl) then) =
__$$_MangaTrackingDataCopyWithImpl<$Res>; __$$MangaTrackingDataImplCopyWithImpl<$Res>;
@override @override
@useResult
$Res call( $Res call(
{String id, {String id,
@MediumTrackingStateConverter() MediumTrackingState state, @MediumTrackingStateConverter() MediumTrackingState state,
@ -133,52 +143,52 @@ abstract class _$$_MangaTrackingDataCopyWith<$Res>
} }
/// @nodoc /// @nodoc
class __$$_MangaTrackingDataCopyWithImpl<$Res> class __$$MangaTrackingDataImplCopyWithImpl<$Res>
extends _$MangaTrackingDataCopyWithImpl<$Res> extends _$MangaTrackingDataCopyWithImpl<$Res, _$MangaTrackingDataImpl>
implements _$$_MangaTrackingDataCopyWith<$Res> { implements _$$MangaTrackingDataImplCopyWith<$Res> {
__$$_MangaTrackingDataCopyWithImpl( __$$MangaTrackingDataImplCopyWithImpl(_$MangaTrackingDataImpl _value,
_$_MangaTrackingData _value, $Res Function(_$_MangaTrackingData) _then) $Res Function(_$MangaTrackingDataImpl) _then)
: super(_value, (v) => _then(v as _$_MangaTrackingData)); : super(_value, _then);
@override
_$_MangaTrackingData get _value => super._value as _$_MangaTrackingData;
/// Create a copy of MangaTrackingData
/// with the given fields replaced by the non-null parameter values.
@pragma('vm:prefer-inline')
@override @override
$Res call({ $Res call({
Object? id = freezed, Object? id = null,
Object? state = freezed, Object? state = null,
Object? title = freezed, Object? title = null,
Object? chaptersRead = freezed, Object? chaptersRead = null,
Object? volumesOwned = freezed, Object? volumesOwned = null,
Object? chaptersTotal = freezed, Object? chaptersTotal = freezed,
Object? thumbnailUrl = freezed, Object? thumbnailUrl = null,
}) { }) {
return _then(_$_MangaTrackingData( return _then(_$MangaTrackingDataImpl(
id == freezed null == id
? _value.id ? _value.id
: id // ignore: cast_nullable_to_non_nullable : id // ignore: cast_nullable_to_non_nullable
as String, as String,
state == freezed null == state
? _value.state ? _value.state
: state // ignore: cast_nullable_to_non_nullable : state // ignore: cast_nullable_to_non_nullable
as MediumTrackingState, as MediumTrackingState,
title == freezed null == title
? _value.title ? _value.title
: title // ignore: cast_nullable_to_non_nullable : title // ignore: cast_nullable_to_non_nullable
as String, as String,
chaptersRead == freezed null == chaptersRead
? _value.chaptersRead ? _value.chaptersRead
: chaptersRead // ignore: cast_nullable_to_non_nullable : chaptersRead // ignore: cast_nullable_to_non_nullable
as int, as int,
volumesOwned == freezed null == volumesOwned
? _value.volumesOwned ? _value.volumesOwned
: volumesOwned // ignore: cast_nullable_to_non_nullable : volumesOwned // ignore: cast_nullable_to_non_nullable
as int, as int,
chaptersTotal == freezed freezed == chaptersTotal
? _value.chaptersTotal ? _value.chaptersTotal
: chaptersTotal // ignore: cast_nullable_to_non_nullable : chaptersTotal // ignore: cast_nullable_to_non_nullable
as int?, as int?,
thumbnailUrl == freezed null == thumbnailUrl
? _value.thumbnailUrl ? _value.thumbnailUrl
: thumbnailUrl // ignore: cast_nullable_to_non_nullable : thumbnailUrl // ignore: cast_nullable_to_non_nullable
as String, as String,
@ -188,8 +198,8 @@ class __$$_MangaTrackingDataCopyWithImpl<$Res>
/// @nodoc /// @nodoc
@JsonSerializable() @JsonSerializable()
class _$_MangaTrackingData implements _MangaTrackingData { class _$MangaTrackingDataImpl implements _MangaTrackingData {
_$_MangaTrackingData( _$MangaTrackingDataImpl(
this.id, this.id,
@MediumTrackingStateConverter() this.state, @MediumTrackingStateConverter() this.state,
this.title, this.title,
@ -198,8 +208,8 @@ class _$_MangaTrackingData implements _MangaTrackingData {
this.chaptersTotal, this.chaptersTotal,
this.thumbnailUrl); this.thumbnailUrl);
factory _$_MangaTrackingData.fromJson(Map<String, dynamic> json) => factory _$MangaTrackingDataImpl.fromJson(Map<String, dynamic> json) =>
_$$_MangaTrackingDataFromJson(json); _$$MangaTrackingDataImplFromJson(json);
/// The ID of the manga /// The ID of the manga
@override @override
@ -236,44 +246,40 @@ class _$_MangaTrackingData implements _MangaTrackingData {
} }
@override @override
bool operator ==(dynamic other) { bool operator ==(Object other) {
return identical(this, other) || return identical(this, other) ||
(other.runtimeType == runtimeType && (other.runtimeType == runtimeType &&
other is _$_MangaTrackingData && other is _$MangaTrackingDataImpl &&
const DeepCollectionEquality().equals(other.id, id) && (identical(other.id, id) || other.id == id) &&
const DeepCollectionEquality().equals(other.state, state) && (identical(other.state, state) || other.state == state) &&
const DeepCollectionEquality().equals(other.title, title) && (identical(other.title, title) || other.title == title) &&
const DeepCollectionEquality() (identical(other.chaptersRead, chaptersRead) ||
.equals(other.chaptersRead, chaptersRead) && other.chaptersRead == chaptersRead) &&
const DeepCollectionEquality() (identical(other.volumesOwned, volumesOwned) ||
.equals(other.volumesOwned, volumesOwned) && other.volumesOwned == volumesOwned) &&
const DeepCollectionEquality() (identical(other.chaptersTotal, chaptersTotal) ||
.equals(other.chaptersTotal, chaptersTotal) && other.chaptersTotal == chaptersTotal) &&
const DeepCollectionEquality() (identical(other.thumbnailUrl, thumbnailUrl) ||
.equals(other.thumbnailUrl, thumbnailUrl)); other.thumbnailUrl == thumbnailUrl));
} }
@JsonKey(ignore: true) @JsonKey(includeFromJson: false, includeToJson: false)
@override @override
int get hashCode => Object.hash( int get hashCode => Object.hash(runtimeType, id, state, title, chaptersRead,
runtimeType, volumesOwned, chaptersTotal, thumbnailUrl);
const DeepCollectionEquality().hash(id),
const DeepCollectionEquality().hash(state),
const DeepCollectionEquality().hash(title),
const DeepCollectionEquality().hash(chaptersRead),
const DeepCollectionEquality().hash(volumesOwned),
const DeepCollectionEquality().hash(chaptersTotal),
const DeepCollectionEquality().hash(thumbnailUrl));
@JsonKey(ignore: true) /// Create a copy of MangaTrackingData
/// with the given fields replaced by the non-null parameter values.
@JsonKey(includeFromJson: false, includeToJson: false)
@override @override
_$$_MangaTrackingDataCopyWith<_$_MangaTrackingData> get copyWith => @pragma('vm:prefer-inline')
__$$_MangaTrackingDataCopyWithImpl<_$_MangaTrackingData>( _$$MangaTrackingDataImplCopyWith<_$MangaTrackingDataImpl> get copyWith =>
__$$MangaTrackingDataImplCopyWithImpl<_$MangaTrackingDataImpl>(
this, _$identity); this, _$identity);
@override @override
Map<String, dynamic> toJson() { Map<String, dynamic> toJson() {
return _$$_MangaTrackingDataToJson( return _$$MangaTrackingDataImplToJson(
this, this,
); );
} }
@ -287,42 +293,44 @@ abstract class _MangaTrackingData implements MangaTrackingData {
final int chaptersRead, final int chaptersRead,
final int volumesOwned, final int volumesOwned,
final int? chaptersTotal, final int? chaptersTotal,
final String thumbnailUrl) = _$_MangaTrackingData; final String thumbnailUrl) = _$MangaTrackingDataImpl;
factory _MangaTrackingData.fromJson(Map<String, dynamic> json) = factory _MangaTrackingData.fromJson(Map<String, dynamic> json) =
_$_MangaTrackingData.fromJson; _$MangaTrackingDataImpl.fromJson;
@override
/// The ID of the manga /// The ID of the manga
String get id;
@override @override
String get id;
/// The state of the manga /// The state of the manga
@override
@MediumTrackingStateConverter() @MediumTrackingStateConverter()
MediumTrackingState get state; MediumTrackingState get state;
@override
/// The title of the manga /// The title of the manga
@override
String get title; String get title;
@override
/// Chapters read. /// Chapters read.
@override
int get chaptersRead; int get chaptersRead;
@override
/// Chapters read. /// Chapters read.
int get volumesOwned;
@override @override
int get volumesOwned;
/// Episodes watched. /// Episodes watched.
int? get chaptersTotal;
@override @override
int? get chaptersTotal;
/// URL to the thumbnail/cover art for the manga. /// URL to the thumbnail/cover art for the manga.
String get thumbnailUrl;
@override @override
@JsonKey(ignore: true) String get thumbnailUrl;
_$$_MangaTrackingDataCopyWith<_$_MangaTrackingData> get copyWith =>
/// Create a copy of MangaTrackingData
/// with the given fields replaced by the non-null parameter values.
@override
@JsonKey(includeFromJson: false, includeToJson: false)
_$$MangaTrackingDataImplCopyWith<_$MangaTrackingDataImpl> get copyWith =>
throw _privateConstructorUsedError; throw _privateConstructorUsedError;
} }

View File

@ -6,19 +6,21 @@ part of 'manga.dart';
// JsonSerializableGenerator // JsonSerializableGenerator
// ************************************************************************** // **************************************************************************
_$_MangaTrackingData _$$_MangaTrackingDataFromJson(Map<String, dynamic> json) => _$MangaTrackingDataImpl _$$MangaTrackingDataImplFromJson(
_$_MangaTrackingData( Map<String, dynamic> json) =>
_$MangaTrackingDataImpl(
json['id'] as String, json['id'] as String,
const MediumTrackingStateConverter().fromJson(json['state'] as int), const MediumTrackingStateConverter()
.fromJson((json['state'] as num).toInt()),
json['title'] as String, json['title'] as String,
json['chaptersRead'] as int, (json['chaptersRead'] as num).toInt(),
json['volumesOwned'] as int, (json['volumesOwned'] as num).toInt(),
json['chaptersTotal'] as int?, (json['chaptersTotal'] as num?)?.toInt(),
json['thumbnailUrl'] as String, json['thumbnailUrl'] as String,
); );
Map<String, dynamic> _$$_MangaTrackingDataToJson( Map<String, dynamic> _$$MangaTrackingDataImplToJson(
_$_MangaTrackingData instance) => _$MangaTrackingDataImpl instance) =>
<String, dynamic>{ <String, dynamic>{
'id': instance.id, 'id': instance.id,
'state': const MediumTrackingStateConverter().toJson(instance.state), 'state': const MediumTrackingStateConverter().toJson(instance.state),

View File

@ -83,7 +83,7 @@ enum MediumTrackingState {
} }
/// Interface for the Anime and Manga data classes /// Interface for the Anime and Manga data classes
abstract class TrackingMedium { mixin TrackingMedium {
/// The ID of the medium /// The ID of the medium
final String id = ''; final String id = '';

View File

@ -1,7 +1,7 @@
// coverage:ignore-file // coverage:ignore-file
// GENERATED CODE - DO NOT MODIFY BY HAND // GENERATED CODE - DO NOT MODIFY BY HAND
// ignore_for_file: type=lint // 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'; part of 'anime_list_bloc.dart';
@ -12,7 +12,7 @@ part of 'anime_list_bloc.dart';
T _$identity<T>(T value) => value; T _$identity<T>(T value) => value;
final _privateConstructorUsedError = UnsupportedError( 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 /// @nodoc
mixin _$AnimeListState { mixin _$AnimeListState {
@ -25,7 +25,9 @@ mixin _$AnimeListState {
throw _privateConstructorUsedError; throw _privateConstructorUsedError;
TrackingMediumType get trackingType => 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 => $AnimeListStateCopyWith<AnimeListState> get copyWith =>
throw _privateConstructorUsedError; throw _privateConstructorUsedError;
} }
@ -34,7 +36,8 @@ mixin _$AnimeListState {
abstract class $AnimeListStateCopyWith<$Res> { abstract class $AnimeListStateCopyWith<$Res> {
factory $AnimeListStateCopyWith( factory $AnimeListStateCopyWith(
AnimeListState value, $Res Function(AnimeListState) then) = AnimeListState value, $Res Function(AnimeListState) then) =
_$AnimeListStateCopyWithImpl<$Res>; _$AnimeListStateCopyWithImpl<$Res, AnimeListState>;
@useResult
$Res call( $Res call(
{bool buttonVisibility, {bool buttonVisibility,
List<AnimeTrackingData> animes, List<AnimeTrackingData> animes,
@ -45,59 +48,64 @@ abstract class $AnimeListStateCopyWith<$Res> {
} }
/// @nodoc /// @nodoc
class _$AnimeListStateCopyWithImpl<$Res> class _$AnimeListStateCopyWithImpl<$Res, $Val extends AnimeListState>
implements $AnimeListStateCopyWith<$Res> { implements $AnimeListStateCopyWith<$Res> {
_$AnimeListStateCopyWithImpl(this._value, this._then); _$AnimeListStateCopyWithImpl(this._value, this._then);
final AnimeListState _value;
// ignore: unused_field // 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 @override
$Res call({ $Res call({
Object? buttonVisibility = freezed, Object? buttonVisibility = null,
Object? animes = freezed, Object? animes = null,
Object? mangas = freezed, Object? mangas = null,
Object? animeFilterState = freezed, Object? animeFilterState = null,
Object? mangaFilterState = freezed, Object? mangaFilterState = null,
Object? trackingType = freezed, Object? trackingType = null,
}) { }) {
return _then(_value.copyWith( return _then(_value.copyWith(
buttonVisibility: buttonVisibility == freezed buttonVisibility: null == buttonVisibility
? _value.buttonVisibility ? _value.buttonVisibility
: buttonVisibility // ignore: cast_nullable_to_non_nullable : buttonVisibility // ignore: cast_nullable_to_non_nullable
as bool, as bool,
animes: animes == freezed animes: null == animes
? _value.animes ? _value.animes
: animes // ignore: cast_nullable_to_non_nullable : animes // ignore: cast_nullable_to_non_nullable
as List<AnimeTrackingData>, as List<AnimeTrackingData>,
mangas: mangas == freezed mangas: null == mangas
? _value.mangas ? _value.mangas
: mangas // ignore: cast_nullable_to_non_nullable : mangas // ignore: cast_nullable_to_non_nullable
as List<MangaTrackingData>, as List<MangaTrackingData>,
animeFilterState: animeFilterState == freezed animeFilterState: null == animeFilterState
? _value.animeFilterState ? _value.animeFilterState
: animeFilterState // ignore: cast_nullable_to_non_nullable : animeFilterState // ignore: cast_nullable_to_non_nullable
as MediumTrackingState, as MediumTrackingState,
mangaFilterState: mangaFilterState == freezed mangaFilterState: null == mangaFilterState
? _value.mangaFilterState ? _value.mangaFilterState
: mangaFilterState // ignore: cast_nullable_to_non_nullable : mangaFilterState // ignore: cast_nullable_to_non_nullable
as MediumTrackingState, as MediumTrackingState,
trackingType: trackingType == freezed trackingType: null == trackingType
? _value.trackingType ? _value.trackingType
: trackingType // ignore: cast_nullable_to_non_nullable : trackingType // ignore: cast_nullable_to_non_nullable
as TrackingMediumType, as TrackingMediumType,
)); ) as $Val);
} }
} }
/// @nodoc /// @nodoc
abstract class _$$_AnimeListStateCopyWith<$Res> abstract class _$$AnimeListStateImplCopyWith<$Res>
implements $AnimeListStateCopyWith<$Res> { implements $AnimeListStateCopyWith<$Res> {
factory _$$_AnimeListStateCopyWith( factory _$$AnimeListStateImplCopyWith(_$AnimeListStateImpl value,
_$_AnimeListState value, $Res Function(_$_AnimeListState) then) = $Res Function(_$AnimeListStateImpl) then) =
__$$_AnimeListStateCopyWithImpl<$Res>; __$$AnimeListStateImplCopyWithImpl<$Res>;
@override @override
@useResult
$Res call( $Res call(
{bool buttonVisibility, {bool buttonVisibility,
List<AnimeTrackingData> animes, List<AnimeTrackingData> animes,
@ -108,47 +116,47 @@ abstract class _$$_AnimeListStateCopyWith<$Res>
} }
/// @nodoc /// @nodoc
class __$$_AnimeListStateCopyWithImpl<$Res> class __$$AnimeListStateImplCopyWithImpl<$Res>
extends _$AnimeListStateCopyWithImpl<$Res> extends _$AnimeListStateCopyWithImpl<$Res, _$AnimeListStateImpl>
implements _$$_AnimeListStateCopyWith<$Res> { implements _$$AnimeListStateImplCopyWith<$Res> {
__$$_AnimeListStateCopyWithImpl( __$$AnimeListStateImplCopyWithImpl(
_$_AnimeListState _value, $Res Function(_$_AnimeListState) _then) _$AnimeListStateImpl _value, $Res Function(_$AnimeListStateImpl) _then)
: super(_value, (v) => _then(v as _$_AnimeListState)); : super(_value, _then);
@override
_$_AnimeListState get _value => super._value as _$_AnimeListState;
/// Create a copy of AnimeListState
/// with the given fields replaced by the non-null parameter values.
@pragma('vm:prefer-inline')
@override @override
$Res call({ $Res call({
Object? buttonVisibility = freezed, Object? buttonVisibility = null,
Object? animes = freezed, Object? animes = null,
Object? mangas = freezed, Object? mangas = null,
Object? animeFilterState = freezed, Object? animeFilterState = null,
Object? mangaFilterState = freezed, Object? mangaFilterState = null,
Object? trackingType = freezed, Object? trackingType = null,
}) { }) {
return _then(_$_AnimeListState( return _then(_$AnimeListStateImpl(
buttonVisibility: buttonVisibility == freezed buttonVisibility: null == buttonVisibility
? _value.buttonVisibility ? _value.buttonVisibility
: buttonVisibility // ignore: cast_nullable_to_non_nullable : buttonVisibility // ignore: cast_nullable_to_non_nullable
as bool, as bool,
animes: animes == freezed animes: null == animes
? _value._animes ? _value._animes
: animes // ignore: cast_nullable_to_non_nullable : animes // ignore: cast_nullable_to_non_nullable
as List<AnimeTrackingData>, as List<AnimeTrackingData>,
mangas: mangas == freezed mangas: null == mangas
? _value._mangas ? _value._mangas
: mangas // ignore: cast_nullable_to_non_nullable : mangas // ignore: cast_nullable_to_non_nullable
as List<MangaTrackingData>, as List<MangaTrackingData>,
animeFilterState: animeFilterState == freezed animeFilterState: null == animeFilterState
? _value.animeFilterState ? _value.animeFilterState
: animeFilterState // ignore: cast_nullable_to_non_nullable : animeFilterState // ignore: cast_nullable_to_non_nullable
as MediumTrackingState, as MediumTrackingState,
mangaFilterState: mangaFilterState == freezed mangaFilterState: null == mangaFilterState
? _value.mangaFilterState ? _value.mangaFilterState
: mangaFilterState // ignore: cast_nullable_to_non_nullable : mangaFilterState // ignore: cast_nullable_to_non_nullable
as MediumTrackingState, as MediumTrackingState,
trackingType: trackingType == freezed trackingType: null == trackingType
? _value.trackingType ? _value.trackingType
: trackingType // ignore: cast_nullable_to_non_nullable : trackingType // ignore: cast_nullable_to_non_nullable
as TrackingMediumType, as TrackingMediumType,
@ -158,8 +166,8 @@ class __$$_AnimeListStateCopyWithImpl<$Res>
/// @nodoc /// @nodoc
class _$_AnimeListState implements _AnimeListState { class _$AnimeListStateImpl implements _AnimeListState {
_$_AnimeListState( _$AnimeListStateImpl(
{this.buttonVisibility = true, {this.buttonVisibility = true,
final List<AnimeTrackingData> animes = const [], final List<AnimeTrackingData> animes = const [],
final List<MangaTrackingData> mangas = const [], final List<MangaTrackingData> mangas = const [],
@ -176,6 +184,7 @@ class _$_AnimeListState implements _AnimeListState {
@override @override
@JsonKey() @JsonKey()
List<AnimeTrackingData> get animes { List<AnimeTrackingData> get animes {
if (_animes is EqualUnmodifiableListView) return _animes;
// ignore: implicit_dynamic_type // ignore: implicit_dynamic_type
return EqualUnmodifiableListView(_animes); return EqualUnmodifiableListView(_animes);
} }
@ -184,6 +193,7 @@ class _$_AnimeListState implements _AnimeListState {
@override @override
@JsonKey() @JsonKey()
List<MangaTrackingData> get mangas { List<MangaTrackingData> get mangas {
if (_mangas is EqualUnmodifiableListView) return _mangas;
// ignore: implicit_dynamic_type // ignore: implicit_dynamic_type
return EqualUnmodifiableListView(_mangas); return EqualUnmodifiableListView(_mangas);
} }
@ -204,36 +214,40 @@ class _$_AnimeListState implements _AnimeListState {
} }
@override @override
bool operator ==(dynamic other) { bool operator ==(Object other) {
return identical(this, other) || return identical(this, other) ||
(other.runtimeType == runtimeType && (other.runtimeType == runtimeType &&
other is _$_AnimeListState && other is _$AnimeListStateImpl &&
const DeepCollectionEquality() (identical(other.buttonVisibility, buttonVisibility) ||
.equals(other.buttonVisibility, buttonVisibility) && other.buttonVisibility == buttonVisibility) &&
const DeepCollectionEquality().equals(other._animes, _animes) && const DeepCollectionEquality().equals(other._animes, _animes) &&
const DeepCollectionEquality().equals(other._mangas, _mangas) && const DeepCollectionEquality().equals(other._mangas, _mangas) &&
const DeepCollectionEquality() (identical(other.animeFilterState, animeFilterState) ||
.equals(other.animeFilterState, animeFilterState) && other.animeFilterState == animeFilterState) &&
const DeepCollectionEquality() (identical(other.mangaFilterState, mangaFilterState) ||
.equals(other.mangaFilterState, mangaFilterState) && other.mangaFilterState == mangaFilterState) &&
const DeepCollectionEquality() (identical(other.trackingType, trackingType) ||
.equals(other.trackingType, trackingType)); other.trackingType == trackingType));
} }
@override @override
int get hashCode => Object.hash( int get hashCode => Object.hash(
runtimeType, runtimeType,
const DeepCollectionEquality().hash(buttonVisibility), buttonVisibility,
const DeepCollectionEquality().hash(_animes), const DeepCollectionEquality().hash(_animes),
const DeepCollectionEquality().hash(_mangas), const DeepCollectionEquality().hash(_mangas),
const DeepCollectionEquality().hash(animeFilterState), animeFilterState,
const DeepCollectionEquality().hash(mangaFilterState), mangaFilterState,
const DeepCollectionEquality().hash(trackingType)); 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 @override
_$$_AnimeListStateCopyWith<_$_AnimeListState> get copyWith => @pragma('vm:prefer-inline')
__$$_AnimeListStateCopyWithImpl<_$_AnimeListState>(this, _$identity); _$$AnimeListStateImplCopyWith<_$AnimeListStateImpl> get copyWith =>
__$$AnimeListStateImplCopyWithImpl<_$AnimeListStateImpl>(
this, _$identity);
} }
abstract class _AnimeListState implements AnimeListState { abstract class _AnimeListState implements AnimeListState {
@ -243,7 +257,7 @@ abstract class _AnimeListState implements AnimeListState {
final List<MangaTrackingData> mangas, final List<MangaTrackingData> mangas,
final MediumTrackingState animeFilterState, final MediumTrackingState animeFilterState,
final MediumTrackingState mangaFilterState, final MediumTrackingState mangaFilterState,
final TrackingMediumType trackingType}) = _$_AnimeListState; final TrackingMediumType trackingType}) = _$AnimeListStateImpl;
@override @override
bool get buttonVisibility; bool get buttonVisibility;
@ -257,8 +271,11 @@ abstract class _AnimeListState implements AnimeListState {
MediumTrackingState get mangaFilterState; MediumTrackingState get mangaFilterState;
@override @override
TrackingMediumType get trackingType; TrackingMediumType get trackingType;
/// Create a copy of AnimeListState
/// with the given fields replaced by the non-null parameter values.
@override @override
@JsonKey(ignore: true) @JsonKey(includeFromJson: false, includeToJson: false)
_$$_AnimeListStateCopyWith<_$_AnimeListState> get copyWith => _$$AnimeListStateImplCopyWith<_$AnimeListStateImpl> get copyWith =>
throw _privateConstructorUsedError; throw _privateConstructorUsedError;
} }

View File

@ -1,7 +1,7 @@
// coverage:ignore-file // coverage:ignore-file
// GENERATED CODE - DO NOT MODIFY BY HAND // GENERATED CODE - DO NOT MODIFY BY HAND
// ignore_for_file: type=lint // 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'; part of 'anime_search_bloc.dart';
@ -12,7 +12,7 @@ part of 'anime_search_bloc.dart';
T _$identity<T>(T value) => value; T _$identity<T>(T value) => value;
final _privateConstructorUsedError = UnsupportedError( 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 /// @nodoc
mixin _$AnimeSearchState { mixin _$AnimeSearchState {
@ -21,7 +21,9 @@ mixin _$AnimeSearchState {
bool get working => throw _privateConstructorUsedError; bool get working => throw _privateConstructorUsedError;
List<SearchResult> get searchResults => 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 => $AnimeSearchStateCopyWith<AnimeSearchState> get copyWith =>
throw _privateConstructorUsedError; throw _privateConstructorUsedError;
} }
@ -30,7 +32,8 @@ mixin _$AnimeSearchState {
abstract class $AnimeSearchStateCopyWith<$Res> { abstract class $AnimeSearchStateCopyWith<$Res> {
factory $AnimeSearchStateCopyWith( factory $AnimeSearchStateCopyWith(
AnimeSearchState value, $Res Function(AnimeSearchState) then) = AnimeSearchState value, $Res Function(AnimeSearchState) then) =
_$AnimeSearchStateCopyWithImpl<$Res>; _$AnimeSearchStateCopyWithImpl<$Res, AnimeSearchState>;
@useResult
$Res call( $Res call(
{TrackingMediumType trackingType, {TrackingMediumType trackingType,
String searchQuery, String searchQuery,
@ -39,49 +42,54 @@ abstract class $AnimeSearchStateCopyWith<$Res> {
} }
/// @nodoc /// @nodoc
class _$AnimeSearchStateCopyWithImpl<$Res> class _$AnimeSearchStateCopyWithImpl<$Res, $Val extends AnimeSearchState>
implements $AnimeSearchStateCopyWith<$Res> { implements $AnimeSearchStateCopyWith<$Res> {
_$AnimeSearchStateCopyWithImpl(this._value, this._then); _$AnimeSearchStateCopyWithImpl(this._value, this._then);
final AnimeSearchState _value;
// ignore: unused_field // 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 @override
$Res call({ $Res call({
Object? trackingType = freezed, Object? trackingType = null,
Object? searchQuery = freezed, Object? searchQuery = null,
Object? working = freezed, Object? working = null,
Object? searchResults = freezed, Object? searchResults = null,
}) { }) {
return _then(_value.copyWith( return _then(_value.copyWith(
trackingType: trackingType == freezed trackingType: null == trackingType
? _value.trackingType ? _value.trackingType
: trackingType // ignore: cast_nullable_to_non_nullable : trackingType // ignore: cast_nullable_to_non_nullable
as TrackingMediumType, as TrackingMediumType,
searchQuery: searchQuery == freezed searchQuery: null == searchQuery
? _value.searchQuery ? _value.searchQuery
: searchQuery // ignore: cast_nullable_to_non_nullable : searchQuery // ignore: cast_nullable_to_non_nullable
as String, as String,
working: working == freezed working: null == working
? _value.working ? _value.working
: working // ignore: cast_nullable_to_non_nullable : working // ignore: cast_nullable_to_non_nullable
as bool, as bool,
searchResults: searchResults == freezed searchResults: null == searchResults
? _value.searchResults ? _value.searchResults
: searchResults // ignore: cast_nullable_to_non_nullable : searchResults // ignore: cast_nullable_to_non_nullable
as List<SearchResult>, as List<SearchResult>,
)); ) as $Val);
} }
} }
/// @nodoc /// @nodoc
abstract class _$$_AnimeSearchStateCopyWith<$Res> abstract class _$$AnimeSearchStateImplCopyWith<$Res>
implements $AnimeSearchStateCopyWith<$Res> { implements $AnimeSearchStateCopyWith<$Res> {
factory _$$_AnimeSearchStateCopyWith( factory _$$AnimeSearchStateImplCopyWith(_$AnimeSearchStateImpl value,
_$_AnimeSearchState value, $Res Function(_$_AnimeSearchState) then) = $Res Function(_$AnimeSearchStateImpl) then) =
__$$_AnimeSearchStateCopyWithImpl<$Res>; __$$AnimeSearchStateImplCopyWithImpl<$Res>;
@override @override
@useResult
$Res call( $Res call(
{TrackingMediumType trackingType, {TrackingMediumType trackingType,
String searchQuery, String searchQuery,
@ -90,37 +98,37 @@ abstract class _$$_AnimeSearchStateCopyWith<$Res>
} }
/// @nodoc /// @nodoc
class __$$_AnimeSearchStateCopyWithImpl<$Res> class __$$AnimeSearchStateImplCopyWithImpl<$Res>
extends _$AnimeSearchStateCopyWithImpl<$Res> extends _$AnimeSearchStateCopyWithImpl<$Res, _$AnimeSearchStateImpl>
implements _$$_AnimeSearchStateCopyWith<$Res> { implements _$$AnimeSearchStateImplCopyWith<$Res> {
__$$_AnimeSearchStateCopyWithImpl( __$$AnimeSearchStateImplCopyWithImpl(_$AnimeSearchStateImpl _value,
_$_AnimeSearchState _value, $Res Function(_$_AnimeSearchState) _then) $Res Function(_$AnimeSearchStateImpl) _then)
: super(_value, (v) => _then(v as _$_AnimeSearchState)); : super(_value, _then);
@override
_$_AnimeSearchState get _value => super._value as _$_AnimeSearchState;
/// Create a copy of AnimeSearchState
/// with the given fields replaced by the non-null parameter values.
@pragma('vm:prefer-inline')
@override @override
$Res call({ $Res call({
Object? trackingType = freezed, Object? trackingType = null,
Object? searchQuery = freezed, Object? searchQuery = null,
Object? working = freezed, Object? working = null,
Object? searchResults = freezed, Object? searchResults = null,
}) { }) {
return _then(_$_AnimeSearchState( return _then(_$AnimeSearchStateImpl(
trackingType: trackingType == freezed trackingType: null == trackingType
? _value.trackingType ? _value.trackingType
: trackingType // ignore: cast_nullable_to_non_nullable : trackingType // ignore: cast_nullable_to_non_nullable
as TrackingMediumType, as TrackingMediumType,
searchQuery: searchQuery == freezed searchQuery: null == searchQuery
? _value.searchQuery ? _value.searchQuery
: searchQuery // ignore: cast_nullable_to_non_nullable : searchQuery // ignore: cast_nullable_to_non_nullable
as String, as String,
working: working == freezed working: null == working
? _value.working ? _value.working
: working // ignore: cast_nullable_to_non_nullable : working // ignore: cast_nullable_to_non_nullable
as bool, as bool,
searchResults: searchResults == freezed searchResults: null == searchResults
? _value._searchResults ? _value._searchResults
: searchResults // ignore: cast_nullable_to_non_nullable : searchResults // ignore: cast_nullable_to_non_nullable
as List<SearchResult>, as List<SearchResult>,
@ -130,8 +138,8 @@ class __$$_AnimeSearchStateCopyWithImpl<$Res>
/// @nodoc /// @nodoc
class _$_AnimeSearchState implements _AnimeSearchState { class _$AnimeSearchStateImpl implements _AnimeSearchState {
_$_AnimeSearchState( _$AnimeSearchStateImpl(
{this.trackingType = TrackingMediumType.anime, {this.trackingType = TrackingMediumType.anime,
this.searchQuery = '', this.searchQuery = '',
this.working = false, this.working = false,
@ -151,6 +159,7 @@ class _$_AnimeSearchState implements _AnimeSearchState {
@override @override
@JsonKey() @JsonKey()
List<SearchResult> get searchResults { List<SearchResult> get searchResults {
if (_searchResults is EqualUnmodifiableListView) return _searchResults;
// ignore: implicit_dynamic_type // ignore: implicit_dynamic_type
return EqualUnmodifiableListView(_searchResults); return EqualUnmodifiableListView(_searchResults);
} }
@ -161,31 +170,31 @@ class _$_AnimeSearchState implements _AnimeSearchState {
} }
@override @override
bool operator ==(dynamic other) { bool operator ==(Object other) {
return identical(this, other) || return identical(this, other) ||
(other.runtimeType == runtimeType && (other.runtimeType == runtimeType &&
other is _$_AnimeSearchState && other is _$AnimeSearchStateImpl &&
const DeepCollectionEquality() (identical(other.trackingType, trackingType) ||
.equals(other.trackingType, trackingType) && other.trackingType == trackingType) &&
const DeepCollectionEquality() (identical(other.searchQuery, searchQuery) ||
.equals(other.searchQuery, searchQuery) && other.searchQuery == searchQuery) &&
const DeepCollectionEquality().equals(other.working, working) && (identical(other.working, working) || other.working == working) &&
const DeepCollectionEquality() const DeepCollectionEquality()
.equals(other._searchResults, _searchResults)); .equals(other._searchResults, _searchResults));
} }
@override @override
int get hashCode => Object.hash( int get hashCode => Object.hash(runtimeType, trackingType, searchQuery,
runtimeType, working, const DeepCollectionEquality().hash(_searchResults));
const DeepCollectionEquality().hash(trackingType),
const DeepCollectionEquality().hash(searchQuery),
const DeepCollectionEquality().hash(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 @override
_$$_AnimeSearchStateCopyWith<_$_AnimeSearchState> get copyWith => @pragma('vm:prefer-inline')
__$$_AnimeSearchStateCopyWithImpl<_$_AnimeSearchState>(this, _$identity); _$$AnimeSearchStateImplCopyWith<_$AnimeSearchStateImpl> get copyWith =>
__$$AnimeSearchStateImplCopyWithImpl<_$AnimeSearchStateImpl>(
this, _$identity);
} }
abstract class _AnimeSearchState implements AnimeSearchState { abstract class _AnimeSearchState implements AnimeSearchState {
@ -193,7 +202,7 @@ abstract class _AnimeSearchState implements AnimeSearchState {
{final TrackingMediumType trackingType, {final TrackingMediumType trackingType,
final String searchQuery, final String searchQuery,
final bool working, final bool working,
final List<SearchResult> searchResults}) = _$_AnimeSearchState; final List<SearchResult> searchResults}) = _$AnimeSearchStateImpl;
@override @override
TrackingMediumType get trackingType; TrackingMediumType get trackingType;
@ -203,8 +212,11 @@ abstract class _AnimeSearchState implements AnimeSearchState {
bool get working; bool get working;
@override @override
List<SearchResult> get searchResults; List<SearchResult> get searchResults;
/// Create a copy of AnimeSearchState
/// with the given fields replaced by the non-null parameter values.
@override @override
@JsonKey(ignore: true) @JsonKey(includeFromJson: false, includeToJson: false)
_$$_AnimeSearchStateCopyWith<_$_AnimeSearchState> get copyWith => _$$AnimeSearchStateImplCopyWith<_$AnimeSearchStateImpl> get copyWith =>
throw _privateConstructorUsedError; throw _privateConstructorUsedError;
} }

View File

@ -1,7 +1,7 @@
// coverage:ignore-file // coverage:ignore-file
// GENERATED CODE - DO NOT MODIFY BY HAND // GENERATED CODE - DO NOT MODIFY BY HAND
// ignore_for_file: type=lint // 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'; part of 'calendar_bloc.dart';
@ -12,7 +12,7 @@ part of 'calendar_bloc.dart';
T _$identity<T>(T value) => value; T _$identity<T>(T value) => value;
final _privateConstructorUsedError = UnsupportedError( 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 /// @nodoc
mixin _$CalendarState { mixin _$CalendarState {
@ -20,7 +20,9 @@ mixin _$CalendarState {
int get refreshingCount => throw _privateConstructorUsedError; int get refreshingCount => throw _privateConstructorUsedError;
int get refreshingTotal => 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 => $CalendarStateCopyWith<CalendarState> get copyWith =>
throw _privateConstructorUsedError; throw _privateConstructorUsedError;
} }
@ -29,79 +31,85 @@ mixin _$CalendarState {
abstract class $CalendarStateCopyWith<$Res> { abstract class $CalendarStateCopyWith<$Res> {
factory $CalendarStateCopyWith( factory $CalendarStateCopyWith(
CalendarState value, $Res Function(CalendarState) then) = CalendarState value, $Res Function(CalendarState) then) =
_$CalendarStateCopyWithImpl<$Res>; _$CalendarStateCopyWithImpl<$Res, CalendarState>;
@useResult
$Res call({bool refreshing, int refreshingCount, int refreshingTotal}); $Res call({bool refreshing, int refreshingCount, int refreshingTotal});
} }
/// @nodoc /// @nodoc
class _$CalendarStateCopyWithImpl<$Res> class _$CalendarStateCopyWithImpl<$Res, $Val extends CalendarState>
implements $CalendarStateCopyWith<$Res> { implements $CalendarStateCopyWith<$Res> {
_$CalendarStateCopyWithImpl(this._value, this._then); _$CalendarStateCopyWithImpl(this._value, this._then);
final CalendarState _value;
// ignore: unused_field // 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 @override
$Res call({ $Res call({
Object? refreshing = freezed, Object? refreshing = null,
Object? refreshingCount = freezed, Object? refreshingCount = null,
Object? refreshingTotal = freezed, Object? refreshingTotal = null,
}) { }) {
return _then(_value.copyWith( return _then(_value.copyWith(
refreshing: refreshing == freezed refreshing: null == refreshing
? _value.refreshing ? _value.refreshing
: refreshing // ignore: cast_nullable_to_non_nullable : refreshing // ignore: cast_nullable_to_non_nullable
as bool, as bool,
refreshingCount: refreshingCount == freezed refreshingCount: null == refreshingCount
? _value.refreshingCount ? _value.refreshingCount
: refreshingCount // ignore: cast_nullable_to_non_nullable : refreshingCount // ignore: cast_nullable_to_non_nullable
as int, as int,
refreshingTotal: refreshingTotal == freezed refreshingTotal: null == refreshingTotal
? _value.refreshingTotal ? _value.refreshingTotal
: refreshingTotal // ignore: cast_nullable_to_non_nullable : refreshingTotal // ignore: cast_nullable_to_non_nullable
as int, as int,
)); ) as $Val);
} }
} }
/// @nodoc /// @nodoc
abstract class _$$_CalendarStateCopyWith<$Res> abstract class _$$CalendarStateImplCopyWith<$Res>
implements $CalendarStateCopyWith<$Res> { implements $CalendarStateCopyWith<$Res> {
factory _$$_CalendarStateCopyWith( factory _$$CalendarStateImplCopyWith(
_$_CalendarState value, $Res Function(_$_CalendarState) then) = _$CalendarStateImpl value, $Res Function(_$CalendarStateImpl) then) =
__$$_CalendarStateCopyWithImpl<$Res>; __$$CalendarStateImplCopyWithImpl<$Res>;
@override @override
@useResult
$Res call({bool refreshing, int refreshingCount, int refreshingTotal}); $Res call({bool refreshing, int refreshingCount, int refreshingTotal});
} }
/// @nodoc /// @nodoc
class __$$_CalendarStateCopyWithImpl<$Res> class __$$CalendarStateImplCopyWithImpl<$Res>
extends _$CalendarStateCopyWithImpl<$Res> extends _$CalendarStateCopyWithImpl<$Res, _$CalendarStateImpl>
implements _$$_CalendarStateCopyWith<$Res> { implements _$$CalendarStateImplCopyWith<$Res> {
__$$_CalendarStateCopyWithImpl( __$$CalendarStateImplCopyWithImpl(
_$_CalendarState _value, $Res Function(_$_CalendarState) _then) _$CalendarStateImpl _value, $Res Function(_$CalendarStateImpl) _then)
: super(_value, (v) => _then(v as _$_CalendarState)); : super(_value, _then);
@override
_$_CalendarState get _value => super._value as _$_CalendarState;
/// Create a copy of CalendarState
/// with the given fields replaced by the non-null parameter values.
@pragma('vm:prefer-inline')
@override @override
$Res call({ $Res call({
Object? refreshing = freezed, Object? refreshing = null,
Object? refreshingCount = freezed, Object? refreshingCount = null,
Object? refreshingTotal = freezed, Object? refreshingTotal = null,
}) { }) {
return _then(_$_CalendarState( return _then(_$CalendarStateImpl(
refreshing == freezed null == refreshing
? _value.refreshing ? _value.refreshing
: refreshing // ignore: cast_nullable_to_non_nullable : refreshing // ignore: cast_nullable_to_non_nullable
as bool, as bool,
refreshingCount == freezed null == refreshingCount
? _value.refreshingCount ? _value.refreshingCount
: refreshingCount // ignore: cast_nullable_to_non_nullable : refreshingCount // ignore: cast_nullable_to_non_nullable
as int, as int,
refreshingTotal == freezed null == refreshingTotal
? _value.refreshingTotal ? _value.refreshingTotal
: refreshingTotal // ignore: cast_nullable_to_non_nullable : refreshingTotal // ignore: cast_nullable_to_non_nullable
as int, as int,
@ -111,8 +119,9 @@ class __$$_CalendarStateCopyWithImpl<$Res>
/// @nodoc /// @nodoc
class _$_CalendarState implements _CalendarState { class _$CalendarStateImpl implements _CalendarState {
_$_CalendarState(this.refreshing, this.refreshingCount, this.refreshingTotal); _$CalendarStateImpl(
this.refreshing, this.refreshingCount, this.refreshingTotal);
@override @override
final bool refreshing; final bool refreshing;
@ -127,34 +136,34 @@ class _$_CalendarState implements _CalendarState {
} }
@override @override
bool operator ==(dynamic other) { bool operator ==(Object other) {
return identical(this, other) || return identical(this, other) ||
(other.runtimeType == runtimeType && (other.runtimeType == runtimeType &&
other is _$_CalendarState && other is _$CalendarStateImpl &&
const DeepCollectionEquality() (identical(other.refreshing, refreshing) ||
.equals(other.refreshing, refreshing) && other.refreshing == refreshing) &&
const DeepCollectionEquality() (identical(other.refreshingCount, refreshingCount) ||
.equals(other.refreshingCount, refreshingCount) && other.refreshingCount == refreshingCount) &&
const DeepCollectionEquality() (identical(other.refreshingTotal, refreshingTotal) ||
.equals(other.refreshingTotal, refreshingTotal)); other.refreshingTotal == refreshingTotal));
} }
@override @override
int get hashCode => Object.hash( int get hashCode =>
runtimeType, Object.hash(runtimeType, refreshing, refreshingCount, refreshingTotal);
const DeepCollectionEquality().hash(refreshing),
const DeepCollectionEquality().hash(refreshingCount),
const DeepCollectionEquality().hash(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 @override
_$$_CalendarStateCopyWith<_$_CalendarState> get copyWith => @pragma('vm:prefer-inline')
__$$_CalendarStateCopyWithImpl<_$_CalendarState>(this, _$identity); _$$CalendarStateImplCopyWith<_$CalendarStateImpl> get copyWith =>
__$$CalendarStateImplCopyWithImpl<_$CalendarStateImpl>(this, _$identity);
} }
abstract class _CalendarState implements CalendarState { abstract class _CalendarState implements CalendarState {
factory _CalendarState(final bool refreshing, final int refreshingCount, factory _CalendarState(final bool refreshing, final int refreshingCount,
final int refreshingTotal) = _$_CalendarState; final int refreshingTotal) = _$CalendarStateImpl;
@override @override
bool get refreshing; bool get refreshing;
@ -162,8 +171,11 @@ abstract class _CalendarState implements CalendarState {
int get refreshingCount; int get refreshingCount;
@override @override
int get refreshingTotal; int get refreshingTotal;
/// Create a copy of CalendarState
/// with the given fields replaced by the non-null parameter values.
@override @override
@JsonKey(ignore: true) @JsonKey(includeFromJson: false, includeToJson: false)
_$$_CalendarStateCopyWith<_$_CalendarState> get copyWith => _$$CalendarStateImplCopyWith<_$CalendarStateImpl> get copyWith =>
throw _privateConstructorUsedError; throw _privateConstructorUsedError;
} }

View File

@ -1,7 +1,7 @@
// coverage:ignore-file // coverage:ignore-file
// GENERATED CODE - DO NOT MODIFY BY HAND // GENERATED CODE - DO NOT MODIFY BY HAND
// ignore_for_file: type=lint // 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'; part of 'details_bloc.dart';
@ -12,7 +12,7 @@ part of 'details_bloc.dart';
T _$identity<T>(T value) => value; T _$identity<T>(T value) => value;
final _privateConstructorUsedError = UnsupportedError( 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 /// @nodoc
mixin _$DetailsState { mixin _$DetailsState {
@ -20,7 +20,9 @@ mixin _$DetailsState {
String? get heroImagePrefix => throw _privateConstructorUsedError; String? get heroImagePrefix => throw _privateConstructorUsedError;
TrackingMediumType get trackingType => 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 => $DetailsStateCopyWith<DetailsState> get copyWith =>
throw _privateConstructorUsedError; throw _privateConstructorUsedError;
} }
@ -29,7 +31,8 @@ mixin _$DetailsState {
abstract class $DetailsStateCopyWith<$Res> { abstract class $DetailsStateCopyWith<$Res> {
factory $DetailsStateCopyWith( factory $DetailsStateCopyWith(
DetailsState value, $Res Function(DetailsState) then) = DetailsState value, $Res Function(DetailsState) then) =
_$DetailsStateCopyWithImpl<$Res>; _$DetailsStateCopyWithImpl<$Res, DetailsState>;
@useResult
$Res call( $Res call(
{TrackingMedium? data, {TrackingMedium? data,
String? heroImagePrefix, String? heroImagePrefix,
@ -37,43 +40,49 @@ abstract class $DetailsStateCopyWith<$Res> {
} }
/// @nodoc /// @nodoc
class _$DetailsStateCopyWithImpl<$Res> implements $DetailsStateCopyWith<$Res> { class _$DetailsStateCopyWithImpl<$Res, $Val extends DetailsState>
implements $DetailsStateCopyWith<$Res> {
_$DetailsStateCopyWithImpl(this._value, this._then); _$DetailsStateCopyWithImpl(this._value, this._then);
final DetailsState _value;
// ignore: unused_field // 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 @override
$Res call({ $Res call({
Object? data = freezed, Object? data = freezed,
Object? heroImagePrefix = freezed, Object? heroImagePrefix = freezed,
Object? trackingType = freezed, Object? trackingType = null,
}) { }) {
return _then(_value.copyWith( return _then(_value.copyWith(
data: data == freezed data: freezed == data
? _value.data ? _value.data
: data // ignore: cast_nullable_to_non_nullable : data // ignore: cast_nullable_to_non_nullable
as TrackingMedium?, as TrackingMedium?,
heroImagePrefix: heroImagePrefix == freezed heroImagePrefix: freezed == heroImagePrefix
? _value.heroImagePrefix ? _value.heroImagePrefix
: heroImagePrefix // ignore: cast_nullable_to_non_nullable : heroImagePrefix // ignore: cast_nullable_to_non_nullable
as String?, as String?,
trackingType: trackingType == freezed trackingType: null == trackingType
? _value.trackingType ? _value.trackingType
: trackingType // ignore: cast_nullable_to_non_nullable : trackingType // ignore: cast_nullable_to_non_nullable
as TrackingMediumType, as TrackingMediumType,
)); ) as $Val);
} }
} }
/// @nodoc /// @nodoc
abstract class _$$_DetailsStateCopyWith<$Res> abstract class _$$DetailsStateImplCopyWith<$Res>
implements $DetailsStateCopyWith<$Res> { implements $DetailsStateCopyWith<$Res> {
factory _$$_DetailsStateCopyWith( factory _$$DetailsStateImplCopyWith(
_$_DetailsState value, $Res Function(_$_DetailsState) then) = _$DetailsStateImpl value, $Res Function(_$DetailsStateImpl) then) =
__$$_DetailsStateCopyWithImpl<$Res>; __$$DetailsStateImplCopyWithImpl<$Res>;
@override @override
@useResult
$Res call( $Res call(
{TrackingMedium? data, {TrackingMedium? data,
String? heroImagePrefix, String? heroImagePrefix,
@ -81,32 +90,32 @@ abstract class _$$_DetailsStateCopyWith<$Res>
} }
/// @nodoc /// @nodoc
class __$$_DetailsStateCopyWithImpl<$Res> class __$$DetailsStateImplCopyWithImpl<$Res>
extends _$DetailsStateCopyWithImpl<$Res> extends _$DetailsStateCopyWithImpl<$Res, _$DetailsStateImpl>
implements _$$_DetailsStateCopyWith<$Res> { implements _$$DetailsStateImplCopyWith<$Res> {
__$$_DetailsStateCopyWithImpl( __$$DetailsStateImplCopyWithImpl(
_$_DetailsState _value, $Res Function(_$_DetailsState) _then) _$DetailsStateImpl _value, $Res Function(_$DetailsStateImpl) _then)
: super(_value, (v) => _then(v as _$_DetailsState)); : super(_value, _then);
@override
_$_DetailsState get _value => super._value as _$_DetailsState;
/// Create a copy of DetailsState
/// with the given fields replaced by the non-null parameter values.
@pragma('vm:prefer-inline')
@override @override
$Res call({ $Res call({
Object? data = freezed, Object? data = freezed,
Object? heroImagePrefix = freezed, Object? heroImagePrefix = freezed,
Object? trackingType = freezed, Object? trackingType = null,
}) { }) {
return _then(_$_DetailsState( return _then(_$DetailsStateImpl(
data: data == freezed data: freezed == data
? _value.data ? _value.data
: data // ignore: cast_nullable_to_non_nullable : data // ignore: cast_nullable_to_non_nullable
as TrackingMedium?, as TrackingMedium?,
heroImagePrefix: heroImagePrefix == freezed heroImagePrefix: freezed == heroImagePrefix
? _value.heroImagePrefix ? _value.heroImagePrefix
: heroImagePrefix // ignore: cast_nullable_to_non_nullable : heroImagePrefix // ignore: cast_nullable_to_non_nullable
as String?, as String?,
trackingType: trackingType == freezed trackingType: null == trackingType
? _value.trackingType ? _value.trackingType
: trackingType // ignore: cast_nullable_to_non_nullable : trackingType // ignore: cast_nullable_to_non_nullable
as TrackingMediumType, as TrackingMediumType,
@ -116,8 +125,8 @@ class __$$_DetailsStateCopyWithImpl<$Res>
/// @nodoc /// @nodoc
class _$_DetailsState implements _DetailsState { class _$DetailsStateImpl implements _DetailsState {
_$_DetailsState( _$DetailsStateImpl(
{this.data, {this.data,
this.heroImagePrefix, this.heroImagePrefix,
this.trackingType = TrackingMediumType.anime}); this.trackingType = TrackingMediumType.anime});
@ -136,35 +145,35 @@ class _$_DetailsState implements _DetailsState {
} }
@override @override
bool operator ==(dynamic other) { bool operator ==(Object other) {
return identical(this, other) || return identical(this, other) ||
(other.runtimeType == runtimeType && (other.runtimeType == runtimeType &&
other is _$_DetailsState && other is _$DetailsStateImpl &&
const DeepCollectionEquality().equals(other.data, data) && (identical(other.data, data) || other.data == data) &&
const DeepCollectionEquality() (identical(other.heroImagePrefix, heroImagePrefix) ||
.equals(other.heroImagePrefix, heroImagePrefix) && other.heroImagePrefix == heroImagePrefix) &&
const DeepCollectionEquality() (identical(other.trackingType, trackingType) ||
.equals(other.trackingType, trackingType)); other.trackingType == trackingType));
} }
@override @override
int get hashCode => Object.hash( int get hashCode =>
runtimeType, Object.hash(runtimeType, data, heroImagePrefix, trackingType);
const DeepCollectionEquality().hash(data),
const DeepCollectionEquality().hash(heroImagePrefix),
const DeepCollectionEquality().hash(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 @override
_$$_DetailsStateCopyWith<_$_DetailsState> get copyWith => @pragma('vm:prefer-inline')
__$$_DetailsStateCopyWithImpl<_$_DetailsState>(this, _$identity); _$$DetailsStateImplCopyWith<_$DetailsStateImpl> get copyWith =>
__$$DetailsStateImplCopyWithImpl<_$DetailsStateImpl>(this, _$identity);
} }
abstract class _DetailsState implements DetailsState { abstract class _DetailsState implements DetailsState {
factory _DetailsState( factory _DetailsState(
{final TrackingMedium? data, {final TrackingMedium? data,
final String? heroImagePrefix, final String? heroImagePrefix,
final TrackingMediumType trackingType}) = _$_DetailsState; final TrackingMediumType trackingType}) = _$DetailsStateImpl;
@override @override
TrackingMedium? get data; TrackingMedium? get data;
@ -172,8 +181,11 @@ abstract class _DetailsState implements DetailsState {
String? get heroImagePrefix; String? get heroImagePrefix;
@override @override
TrackingMediumType get trackingType; TrackingMediumType get trackingType;
/// Create a copy of DetailsState
/// with the given fields replaced by the non-null parameter values.
@override @override
@JsonKey(ignore: true) @JsonKey(includeFromJson: false, includeToJson: false)
_$$_DetailsStateCopyWith<_$_DetailsState> get copyWith => _$$DetailsStateImplCopyWith<_$DetailsStateImpl> get copyWith =>
throw _privateConstructorUsedError; throw _privateConstructorUsedError;
} }

View File

@ -1,7 +1,7 @@
// coverage:ignore-file // coverage:ignore-file
// GENERATED CODE - DO NOT MODIFY BY HAND // GENERATED CODE - DO NOT MODIFY BY HAND
// ignore_for_file: type=lint // 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'; part of 'settings_bloc.dart';
@ -12,7 +12,7 @@ part of 'settings_bloc.dart';
T _$identity<T>(T value) => value; T _$identity<T>(T value) => value;
final _privateConstructorUsedError = UnsupportedError( 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 /// @nodoc
mixin _$SettingsState { mixin _$SettingsState {
@ -20,7 +20,9 @@ mixin _$SettingsState {
int get importCurrent => throw _privateConstructorUsedError; int get importCurrent => throw _privateConstructorUsedError;
int get importTotal => 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 => $SettingsStateCopyWith<SettingsState> get copyWith =>
throw _privateConstructorUsedError; throw _privateConstructorUsedError;
} }
@ -29,79 +31,85 @@ mixin _$SettingsState {
abstract class $SettingsStateCopyWith<$Res> { abstract class $SettingsStateCopyWith<$Res> {
factory $SettingsStateCopyWith( factory $SettingsStateCopyWith(
SettingsState value, $Res Function(SettingsState) then) = SettingsState value, $Res Function(SettingsState) then) =
_$SettingsStateCopyWithImpl<$Res>; _$SettingsStateCopyWithImpl<$Res, SettingsState>;
@useResult
$Res call({bool importSpinnerVisible, int importCurrent, int importTotal}); $Res call({bool importSpinnerVisible, int importCurrent, int importTotal});
} }
/// @nodoc /// @nodoc
class _$SettingsStateCopyWithImpl<$Res> class _$SettingsStateCopyWithImpl<$Res, $Val extends SettingsState>
implements $SettingsStateCopyWith<$Res> { implements $SettingsStateCopyWith<$Res> {
_$SettingsStateCopyWithImpl(this._value, this._then); _$SettingsStateCopyWithImpl(this._value, this._then);
final SettingsState _value;
// ignore: unused_field // 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 @override
$Res call({ $Res call({
Object? importSpinnerVisible = freezed, Object? importSpinnerVisible = null,
Object? importCurrent = freezed, Object? importCurrent = null,
Object? importTotal = freezed, Object? importTotal = null,
}) { }) {
return _then(_value.copyWith( return _then(_value.copyWith(
importSpinnerVisible: importSpinnerVisible == freezed importSpinnerVisible: null == importSpinnerVisible
? _value.importSpinnerVisible ? _value.importSpinnerVisible
: importSpinnerVisible // ignore: cast_nullable_to_non_nullable : importSpinnerVisible // ignore: cast_nullable_to_non_nullable
as bool, as bool,
importCurrent: importCurrent == freezed importCurrent: null == importCurrent
? _value.importCurrent ? _value.importCurrent
: importCurrent // ignore: cast_nullable_to_non_nullable : importCurrent // ignore: cast_nullable_to_non_nullable
as int, as int,
importTotal: importTotal == freezed importTotal: null == importTotal
? _value.importTotal ? _value.importTotal
: importTotal // ignore: cast_nullable_to_non_nullable : importTotal // ignore: cast_nullable_to_non_nullable
as int, as int,
)); ) as $Val);
} }
} }
/// @nodoc /// @nodoc
abstract class _$$_SettingsStateCopyWith<$Res> abstract class _$$SettingsStateImplCopyWith<$Res>
implements $SettingsStateCopyWith<$Res> { implements $SettingsStateCopyWith<$Res> {
factory _$$_SettingsStateCopyWith( factory _$$SettingsStateImplCopyWith(
_$_SettingsState value, $Res Function(_$_SettingsState) then) = _$SettingsStateImpl value, $Res Function(_$SettingsStateImpl) then) =
__$$_SettingsStateCopyWithImpl<$Res>; __$$SettingsStateImplCopyWithImpl<$Res>;
@override @override
@useResult
$Res call({bool importSpinnerVisible, int importCurrent, int importTotal}); $Res call({bool importSpinnerVisible, int importCurrent, int importTotal});
} }
/// @nodoc /// @nodoc
class __$$_SettingsStateCopyWithImpl<$Res> class __$$SettingsStateImplCopyWithImpl<$Res>
extends _$SettingsStateCopyWithImpl<$Res> extends _$SettingsStateCopyWithImpl<$Res, _$SettingsStateImpl>
implements _$$_SettingsStateCopyWith<$Res> { implements _$$SettingsStateImplCopyWith<$Res> {
__$$_SettingsStateCopyWithImpl( __$$SettingsStateImplCopyWithImpl(
_$_SettingsState _value, $Res Function(_$_SettingsState) _then) _$SettingsStateImpl _value, $Res Function(_$SettingsStateImpl) _then)
: super(_value, (v) => _then(v as _$_SettingsState)); : super(_value, _then);
@override
_$_SettingsState get _value => super._value as _$_SettingsState;
/// Create a copy of SettingsState
/// with the given fields replaced by the non-null parameter values.
@pragma('vm:prefer-inline')
@override @override
$Res call({ $Res call({
Object? importSpinnerVisible = freezed, Object? importSpinnerVisible = null,
Object? importCurrent = freezed, Object? importCurrent = null,
Object? importTotal = freezed, Object? importTotal = null,
}) { }) {
return _then(_$_SettingsState( return _then(_$SettingsStateImpl(
importSpinnerVisible: importSpinnerVisible == freezed importSpinnerVisible: null == importSpinnerVisible
? _value.importSpinnerVisible ? _value.importSpinnerVisible
: importSpinnerVisible // ignore: cast_nullable_to_non_nullable : importSpinnerVisible // ignore: cast_nullable_to_non_nullable
as bool, as bool,
importCurrent: importCurrent == freezed importCurrent: null == importCurrent
? _value.importCurrent ? _value.importCurrent
: importCurrent // ignore: cast_nullable_to_non_nullable : importCurrent // ignore: cast_nullable_to_non_nullable
as int, as int,
importTotal: importTotal == freezed importTotal: null == importTotal
? _value.importTotal ? _value.importTotal
: importTotal // ignore: cast_nullable_to_non_nullable : importTotal // ignore: cast_nullable_to_non_nullable
as int, as int,
@ -111,8 +119,8 @@ class __$$_SettingsStateCopyWithImpl<$Res>
/// @nodoc /// @nodoc
class _$_SettingsState implements _SettingsState { class _$SettingsStateImpl implements _SettingsState {
_$_SettingsState( _$SettingsStateImpl(
{this.importSpinnerVisible = false, {this.importSpinnerVisible = false,
this.importCurrent = 0, this.importCurrent = 0,
this.importTotal = 0}); this.importTotal = 0});
@ -133,36 +141,36 @@ class _$_SettingsState implements _SettingsState {
} }
@override @override
bool operator ==(dynamic other) { bool operator ==(Object other) {
return identical(this, other) || return identical(this, other) ||
(other.runtimeType == runtimeType && (other.runtimeType == runtimeType &&
other is _$_SettingsState && other is _$SettingsStateImpl &&
const DeepCollectionEquality() (identical(other.importSpinnerVisible, importSpinnerVisible) ||
.equals(other.importSpinnerVisible, importSpinnerVisible) && other.importSpinnerVisible == importSpinnerVisible) &&
const DeepCollectionEquality() (identical(other.importCurrent, importCurrent) ||
.equals(other.importCurrent, importCurrent) && other.importCurrent == importCurrent) &&
const DeepCollectionEquality() (identical(other.importTotal, importTotal) ||
.equals(other.importTotal, importTotal)); other.importTotal == importTotal));
} }
@override @override
int get hashCode => Object.hash( int get hashCode => Object.hash(
runtimeType, runtimeType, importSpinnerVisible, importCurrent, importTotal);
const DeepCollectionEquality().hash(importSpinnerVisible),
const DeepCollectionEquality().hash(importCurrent),
const DeepCollectionEquality().hash(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 @override
_$$_SettingsStateCopyWith<_$_SettingsState> get copyWith => @pragma('vm:prefer-inline')
__$$_SettingsStateCopyWithImpl<_$_SettingsState>(this, _$identity); _$$SettingsStateImplCopyWith<_$SettingsStateImpl> get copyWith =>
__$$SettingsStateImplCopyWithImpl<_$SettingsStateImpl>(this, _$identity);
} }
abstract class _SettingsState implements SettingsState { abstract class _SettingsState implements SettingsState {
factory _SettingsState( factory _SettingsState(
{final bool importSpinnerVisible, {final bool importSpinnerVisible,
final int importCurrent, final int importCurrent,
final int importTotal}) = _$_SettingsState; final int importTotal}) = _$SettingsStateImpl;
@override @override
bool get importSpinnerVisible; bool get importSpinnerVisible;
@ -170,8 +178,11 @@ abstract class _SettingsState implements SettingsState {
int get importCurrent; int get importCurrent;
@override @override
int get importTotal; int get importTotal;
/// Create a copy of SettingsState
/// with the given fields replaced by the non-null parameter values.
@override @override
@JsonKey(ignore: true) @JsonKey(includeFromJson: false, includeToJson: false)
_$$_SettingsStateCopyWith<_$_SettingsState> get copyWith => _$$SettingsStateImplCopyWith<_$SettingsStateImpl> get copyWith =>
throw _privateConstructorUsedError; throw _privateConstructorUsedError;
} }

File diff suppressed because it is too large Load Diff

View File

@ -1,48 +1,48 @@
name: anitrack name: anitrack
description: An anime and manga tracker description: An anime and manga tracker
publish_to: 'none' publish_to: "none"
version: 0.1.3+2011 version: 0.1.3+2011
environment: environment:
sdk: '>=2.18.4 <3.0.0' sdk: ">=3.0.0 <4.0.0"
dependencies: dependencies:
archive: ^3.3.7 archive: ^3.6.1
bloc: ^8.1.0 bloc: ^8.1.4
bottom_bar: ^2.0.3 bottom_bar: ^2.0.3
cached_network_image: ^3.2.3 cached_network_image: ^3.4.1
collection: ^1.17.0 collection: ^1.18.0
cupertino_icons: ^1.0.2 cupertino_icons: ^1.0.8
file_picker: ^5.2.8 file_picker: ^8.1.2
flutter: flutter:
sdk: flutter sdk: flutter
flutter_bloc: ^8.1.1 flutter_bloc: ^8.1.6
fluttertoast: ^8.2.2 fluttertoast: ^8.2.8
freezed_annotation: 2.1.0 freezed_annotation: ^2.4.4
get_it: ^7.2.0 get_it: ^8.0.0
jikan_api: ^2.0.0 jikan_api: ^2.2.1
json_annotation: 4.6.0 json_annotation: ^4.9.0
path: ^1.8.2 path: ^1.9.0
permission_handler: ^10.4.3 permission_handler: ^11.3.1
slang: 3.19.0 slang: ^3.31.2
slang_flutter: 3.19.0 slang_flutter: ^3.31.0
sqflite: ^2.2.4+1 sqflite: ^2.3.3+2
swipeable_tile: ^2.0.0+3 swipeable_tile: ^2.0.1
url_launcher: ^6.1.8 url_launcher: ^6.3.0
xml: ^6.2.2 xml: ^6.5.0
dev_dependencies: dev_dependencies:
build_runner: ^2.1.11 build_runner: ^2.4.12
flutter_launcher_icons: ^0.11.0 flutter_launcher_icons: ^0.14.1
flutter_lints: ^2.0.0 flutter_lints: ^5.0.0
flutter_oss_licenses: ^2.0.1 flutter_oss_licenses: ^3.0.2
flutter_test: flutter_test:
sdk: flutter sdk: flutter
freezed: ^2.1.0+1 freezed: ^2.5.7
json_serializable: ^6.3.1 json_serializable: ^6.8.0
slang_build_runner: 3.19.0 slang_build_runner: ^3.31.0
very_good_analysis: ^3.0.1 very_good_analysis: ^6.0.0
flutter: flutter:
uses-material-design: true uses-material-design: true