diff --git a/.fvmrc b/.fvmrc index 14b86e4..679f8e1 100644 --- a/.fvmrc +++ b/.fvmrc @@ -1,4 +1,4 @@ { - "flutter": "3.7.11", + "flutter": "3.24.5", "flavors": {} } \ No newline at end of file diff --git a/android/app/build.gradle b/android/app/build.gradle index aa6b4ec..2bc03f4 100644 --- a/android/app/build.gradle +++ b/android/app/build.gradle @@ -1,3 +1,9 @@ +plugins { + id "com.android.application" + id "kotlin-android" + id "dev.flutter.flutter-gradle-plugin" +} + def localProperties = new Properties() def localPropertiesFile = rootProject.file('local.properties') 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') if (flutterVersionCode == null) { flutterVersionCode = '1' @@ -21,10 +22,6 @@ if (flutterVersionName == null) { flutterVersionName = '1.0' } -apply plugin: 'com.android.application' -apply plugin: 'kotlin-android' -apply from: "$flutterRoot/packages/flutter_tools/gradle/flutter.gradle" - def keystoreProperties = new Properties() def keystorePropertiesFile = rootProject.file('key.properties') if (keystorePropertiesFile.exists()) { @@ -53,7 +50,7 @@ android { applicationId "com.subtracks2" // You can update the following values to match your application needs. // For more information, see: https://docs.flutter.dev/deployment/android#reviewing-the-gradle-build-configuration. - minSdkVersion 19 + minSdkVersion flutter.minSdkVersion targetSdkVersion flutter.targetSdkVersion versionCode flutterVersionCode.toInteger() versionName flutterVersionName @@ -81,8 +78,4 @@ android { flutter { source '../..' -} - -dependencies { - implementation "org.jetbrains.kotlin:kotlin-stdlib-jdk7:$kotlin_version" -} +} \ No newline at end of file diff --git a/android/app/src/debug/AndroidManifest.xml b/android/app/src/debug/AndroidManifest.xml index a4bd2dd..97f618a 100644 --- a/android/app/src/debug/AndroidManifest.xml +++ b/android/app/src/debug/AndroidManifest.xml @@ -5,4 +5,9 @@ to allow setting breakpoints, to provide hot reload, etc. --> + + + + + diff --git a/android/app/src/main/AndroidManifest.xml b/android/app/src/main/AndroidManifest.xml index adb244b..d987d34 100644 --- a/android/app/src/main/AndroidManifest.xml +++ b/android/app/src/main/AndroidManifest.xml @@ -69,4 +69,5 @@ + diff --git a/android/app/src/main/java/io/flutter/app/FlutterMultiDexApplication.java b/android/app/src/main/java/io/flutter/app/FlutterMultiDexApplication.java deleted file mode 100644 index 752fc18..0000000 --- a/android/app/src/main/java/io/flutter/app/FlutterMultiDexApplication.java +++ /dev/null @@ -1,25 +0,0 @@ -// Generated file. -// -// If you wish to remove Flutter's multidex support, delete this entire file. -// -// Modifications to this file should be done in a copy under a different name -// as this file may be regenerated. - -package io.flutter.app; - -import android.app.Application; -import android.content.Context; -import androidx.annotation.CallSuper; -import androidx.multidex.MultiDex; - -/** - * Extension of {@link android.app.Application}, adding multidex support. - */ -public class FlutterMultiDexApplication extends Application { - @Override - @CallSuper - protected void attachBaseContext(Context base) { - super.attachBaseContext(base); - MultiDex.install(this); - } -} diff --git a/android/app/src/profile/AndroidManifest.xml b/android/app/src/profile/AndroidManifest.xml index a4bd2dd..97f618a 100644 --- a/android/app/src/profile/AndroidManifest.xml +++ b/android/app/src/profile/AndroidManifest.xml @@ -5,4 +5,9 @@ to allow setting breakpoints, to provide hot reload, etc. --> + + + + + diff --git a/android/build.gradle b/android/build.gradle index 58a8c74..bc157bd 100644 --- a/android/build.gradle +++ b/android/build.gradle @@ -1,16 +1,3 @@ -buildscript { - ext.kotlin_version = '1.7.10' - repositories { - google() - mavenCentral() - } - - dependencies { - classpath 'com.android.tools.build:gradle:7.2.0' - classpath "org.jetbrains.kotlin:kotlin-gradle-plugin:$kotlin_version" - } -} - allprojects { repositories { google() @@ -26,6 +13,6 @@ subprojects { project.evaluationDependsOn(':app') } -task clean(type: Delete) { +tasks.register("clean", Delete) { delete rootProject.buildDir } diff --git a/android/settings.gradle b/android/settings.gradle index 44e62bc..ce6907c 100644 --- a/android/settings.gradle +++ b/android/settings.gradle @@ -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") -def properties = new Properties() + includeBuild("$flutterSdkPath/packages/flutter_tools/gradle") -assert localPropertiesFile.exists() -localPropertiesFile.withReader("UTF-8") { reader -> properties.load(reader) } + repositories { + google() + mavenCentral() + gradlePluginPortal() + } +} -def flutterSdkPath = properties.getProperty("flutter.sdk") -assert flutterSdkPath != null, "flutter.sdk not set in local.properties" -apply from: "$flutterSdkPath/packages/flutter_tools/gradle/app_plugin_loader.gradle" +plugins { + id "dev.flutter.flutter-plugin-loader" version "1.0.0" + id "com.android.application" version "7.2.0" apply false + id "org.jetbrains.kotlin.android" version "2.0.21" apply false +} + +include ":app" \ No newline at end of file diff --git a/lib/app/app.g.dart b/lib/app/app.g.dart index 0ccf782..b0cc085 100644 --- a/lib/app/app.g.dart +++ b/lib/app/app.g.dart @@ -20,4 +20,5 @@ final lastPathProvider = NotifierProvider.internal( ); typedef _$LastPath = Notifier; -// ignore_for_file: unnecessary_raw_strings, subtype_of_sealed_class, invalid_use_of_internal_member, do_not_use_environment, prefer_const_constructors, public_member_api_docs, avoid_private_typedef_functions +// ignore_for_file: type=lint +// ignore_for_file: subtype_of_sealed_class, invalid_use_of_internal_member, invalid_use_of_visible_for_testing_member diff --git a/lib/app/context_menus.dart b/lib/app/context_menus.dart index c051d13..c562bc8 100644 --- a/lib/app/context_menus.dart +++ b/lib/app/context_menus.dart @@ -25,7 +25,7 @@ Future showContextMenu({ required WidgetBuilder builder, }) { return showModalBottomSheet( - backgroundColor: ref.read(baseThemeProvider).theme.colorScheme.background, + backgroundColor: ref.read(baseThemeProvider).theme.colorScheme.surface, useRootNavigator: true, isScrollControlled: true, context: context, diff --git a/lib/app/hooks/use_download_actions.dart b/lib/app/hooks/use_download_actions.dart index 4d2aa70..579b9e6 100644 --- a/lib/app/hooks/use_download_actions.dart +++ b/lib/app/hooks/use_download_actions.dart @@ -112,9 +112,9 @@ List useListDownloadActions({ DownloadAction cancel() { return DownloadAction( type: DownloadActionType.cancel, - iconBuilder: (context) => Stack( + iconBuilder: (context) => const Stack( alignment: Alignment.center, - children: const [ + children: [ Icon(Icons.cancel_rounded), SizedBox( height: 32, diff --git a/lib/app/images.dart b/lib/app/images.dart index c158570..6867576 100644 --- a/lib/app/images.dart +++ b/lib/app/images.dart @@ -213,7 +213,7 @@ class CardClip extends StatelessWidget { final cardShape = Theme.of(context).cardTheme.shape; return ClipRRect( borderRadius: - cardShape is RoundedRectangleBorder ? cardShape.borderRadius : null, + cardShape is RoundedRectangleBorder ? cardShape.borderRadius : BorderRadius.zero, child: !square ? child : AspectRatio( diff --git a/lib/app/images.g.dart b/lib/app/images.g.dart index f4f84e5..6f585e3 100644 --- a/lib/app/images.g.dart +++ b/lib/app/images.g.dart @@ -30,8 +30,6 @@ class _SystemHash { } } -typedef _ArtistArtCacheInfoRef = AutoDisposeProviderRef; - /// See also [_artistArtCacheInfo]. @ProviderFor(_artistArtCacheInfo) const _artistArtCacheInfoProvider = _ArtistArtCacheInfoFamily(); @@ -81,11 +79,11 @@ class _ArtistArtCacheInfoFamily extends Family { class _ArtistArtCacheInfoProvider extends AutoDisposeProvider { /// See also [_artistArtCacheInfo]. _ArtistArtCacheInfoProvider({ - required this.artistId, - this.thumbnail = true, - }) : super.internal( + required String artistId, + bool thumbnail = true, + }) : this._internal( (ref) => _artistArtCacheInfo( - ref, + ref as _ArtistArtCacheInfoRef, artistId: artistId, thumbnail: thumbnail, ), @@ -98,11 +96,48 @@ class _ArtistArtCacheInfoProvider extends AutoDisposeProvider { dependencies: _ArtistArtCacheInfoFamily._dependencies, allTransitiveDependencies: _ArtistArtCacheInfoFamily._allTransitiveDependencies, + artistId: artistId, + thumbnail: thumbnail, ); + _ArtistArtCacheInfoProvider._internal( + super._createNotifier, { + required super.name, + required super.dependencies, + required super.allTransitiveDependencies, + required super.debugGetCreateSourceHash, + required super.from, + required this.artistId, + required this.thumbnail, + }) : super.internal(); + final String artistId; final bool thumbnail; + @override + Override overrideWith( + CacheInfo Function(_ArtistArtCacheInfoRef provider) create, + ) { + return ProviderOverride( + origin: this, + override: _ArtistArtCacheInfoProvider._internal( + (ref) => create(ref as _ArtistArtCacheInfoRef), + from: from, + name: null, + dependencies: null, + allTransitiveDependencies: null, + debugGetCreateSourceHash: null, + artistId: artistId, + thumbnail: thumbnail, + ), + ); + } + + @override + AutoDisposeProviderElement createElement() { + return _ArtistArtCacheInfoProviderElement(this); + } + @override bool operator ==(Object other) { return other is _ArtistArtCacheInfoProvider && @@ -120,9 +155,26 @@ class _ArtistArtCacheInfoProvider extends AutoDisposeProvider { } } +mixin _ArtistArtCacheInfoRef on AutoDisposeProviderRef { + /// The parameter `artistId` of this provider. + String get artistId; + + /// The parameter `thumbnail` of this provider. + bool get thumbnail; +} + +class _ArtistArtCacheInfoProviderElement + extends AutoDisposeProviderElement with _ArtistArtCacheInfoRef { + _ArtistArtCacheInfoProviderElement(super.provider); + + @override + String get artistId => (origin as _ArtistArtCacheInfoProvider).artistId; + @override + bool get thumbnail => (origin as _ArtistArtCacheInfoProvider).thumbnail; +} + String _$artistArtCachedUrlHash() => r'2a5e0fea614ff12a1d562faccec6cfe98394af42'; -typedef _ArtistArtCachedUrlRef = AutoDisposeFutureProviderRef; /// See also [_artistArtCachedUrl]. @ProviderFor(_artistArtCachedUrl) @@ -173,11 +225,11 @@ class _ArtistArtCachedUrlFamily extends Family> { class _ArtistArtCachedUrlProvider extends AutoDisposeFutureProvider { /// See also [_artistArtCachedUrl]. _ArtistArtCachedUrlProvider({ - required this.artistId, - this.thumbnail = true, - }) : super.internal( + required String artistId, + bool thumbnail = true, + }) : this._internal( (ref) => _artistArtCachedUrl( - ref, + ref as _ArtistArtCachedUrlRef, artistId: artistId, thumbnail: thumbnail, ), @@ -190,11 +242,48 @@ class _ArtistArtCachedUrlProvider extends AutoDisposeFutureProvider { dependencies: _ArtistArtCachedUrlFamily._dependencies, allTransitiveDependencies: _ArtistArtCachedUrlFamily._allTransitiveDependencies, + artistId: artistId, + thumbnail: thumbnail, ); + _ArtistArtCachedUrlProvider._internal( + super._createNotifier, { + required super.name, + required super.dependencies, + required super.allTransitiveDependencies, + required super.debugGetCreateSourceHash, + required super.from, + required this.artistId, + required this.thumbnail, + }) : super.internal(); + final String artistId; final bool thumbnail; + @override + Override overrideWith( + FutureOr Function(_ArtistArtCachedUrlRef provider) create, + ) { + return ProviderOverride( + origin: this, + override: _ArtistArtCachedUrlProvider._internal( + (ref) => create(ref as _ArtistArtCachedUrlRef), + from: from, + name: null, + dependencies: null, + allTransitiveDependencies: null, + debugGetCreateSourceHash: null, + artistId: artistId, + thumbnail: thumbnail, + ), + ); + } + + @override + AutoDisposeFutureProviderElement createElement() { + return _ArtistArtCachedUrlProviderElement(this); + } + @override bool operator ==(Object other) { return other is _ArtistArtCachedUrlProvider && @@ -212,9 +301,27 @@ class _ArtistArtCachedUrlProvider extends AutoDisposeFutureProvider { } } +mixin _ArtistArtCachedUrlRef on AutoDisposeFutureProviderRef { + /// The parameter `artistId` of this provider. + String get artistId; + + /// The parameter `thumbnail` of this provider. + bool get thumbnail; +} + +class _ArtistArtCachedUrlProviderElement + extends AutoDisposeFutureProviderElement + with _ArtistArtCachedUrlRef { + _ArtistArtCachedUrlProviderElement(super.provider); + + @override + String get artistId => (origin as _ArtistArtCachedUrlProvider).artistId; + @override + bool get thumbnail => (origin as _ArtistArtCachedUrlProvider).thumbnail; +} + String _$artistArtUriCacheInfoHash() => r'9bdc0f5654882265236ef746ea697a6d107a4b6f'; -typedef _ArtistArtUriCacheInfoRef = AutoDisposeFutureProviderRef; /// See also [_artistArtUriCacheInfo]. @ProviderFor(_artistArtUriCacheInfo) @@ -266,11 +373,11 @@ class _ArtistArtUriCacheInfoProvider extends AutoDisposeFutureProvider { /// See also [_artistArtUriCacheInfo]. _ArtistArtUriCacheInfoProvider({ - required this.artistId, - this.thumbnail = true, - }) : super.internal( + required String artistId, + bool thumbnail = true, + }) : this._internal( (ref) => _artistArtUriCacheInfo( - ref, + ref as _ArtistArtUriCacheInfoRef, artistId: artistId, thumbnail: thumbnail, ), @@ -283,11 +390,48 @@ class _ArtistArtUriCacheInfoProvider dependencies: _ArtistArtUriCacheInfoFamily._dependencies, allTransitiveDependencies: _ArtistArtUriCacheInfoFamily._allTransitiveDependencies, + artistId: artistId, + thumbnail: thumbnail, ); + _ArtistArtUriCacheInfoProvider._internal( + super._createNotifier, { + required super.name, + required super.dependencies, + required super.allTransitiveDependencies, + required super.debugGetCreateSourceHash, + required super.from, + required this.artistId, + required this.thumbnail, + }) : super.internal(); + final String artistId; final bool thumbnail; + @override + Override overrideWith( + FutureOr Function(_ArtistArtUriCacheInfoRef provider) create, + ) { + return ProviderOverride( + origin: this, + override: _ArtistArtUriCacheInfoProvider._internal( + (ref) => create(ref as _ArtistArtUriCacheInfoRef), + from: from, + name: null, + dependencies: null, + allTransitiveDependencies: null, + debugGetCreateSourceHash: null, + artistId: artistId, + thumbnail: thumbnail, + ), + ); + } + + @override + AutoDisposeFutureProviderElement createElement() { + return _ArtistArtUriCacheInfoProviderElement(this); + } + @override bool operator ==(Object other) { return other is _ArtistArtUriCacheInfoProvider && @@ -304,4 +448,24 @@ class _ArtistArtUriCacheInfoProvider return _SystemHash.finish(hash); } } -// ignore_for_file: unnecessary_raw_strings, subtype_of_sealed_class, invalid_use_of_internal_member, do_not_use_environment, prefer_const_constructors, public_member_api_docs, avoid_private_typedef_functions + +mixin _ArtistArtUriCacheInfoRef on AutoDisposeFutureProviderRef { + /// The parameter `artistId` of this provider. + String get artistId; + + /// The parameter `thumbnail` of this provider. + bool get thumbnail; +} + +class _ArtistArtUriCacheInfoProviderElement + extends AutoDisposeFutureProviderElement + with _ArtistArtUriCacheInfoRef { + _ArtistArtUriCacheInfoProviderElement(super.provider); + + @override + String get artistId => (origin as _ArtistArtUriCacheInfoProvider).artistId; + @override + bool get thumbnail => (origin as _ArtistArtUriCacheInfoProvider).thumbnail; +} +// ignore_for_file: type=lint +// ignore_for_file: subtype_of_sealed_class, invalid_use_of_internal_member, invalid_use_of_visible_for_testing_member diff --git a/lib/app/lists.dart b/lib/app/lists.dart index 3b5c552..ccb3f23 100644 --- a/lib/app/lists.dart +++ b/lib/app/lists.dart @@ -127,6 +127,7 @@ class SyncAllRefresh extends HookConsumerWidget { try { await ref.read(syncServiceProvider.notifier).syncAll(); } catch (e) { + if (!context.mounted) return; showErrorSnackbar(context, e.toString()); } }, diff --git a/lib/app/now_playing_bar.dart b/lib/app/now_playing_bar.dart index ba5300a..a718847 100644 --- a/lib/app/now_playing_bar.dart +++ b/lib/app/now_playing_bar.dart @@ -30,13 +30,13 @@ class NowPlayingBar extends HookConsumerWidget { elevation: 3, color: colors?.darkBackground, // surfaceTintColor: theme?.colorScheme.background, - child: Column( + child: const Column( children: [ SizedBox( height: 70, child: Row( mainAxisSize: MainAxisSize.max, - children: const [ + children: [ Padding( padding: EdgeInsets.all(10), child: _ArtImage(), @@ -54,7 +54,7 @@ class NowPlayingBar extends HookConsumerWidget { ], ), ), - const _ProgressBar(), + _ProgressBar(), ], ), ), @@ -173,7 +173,7 @@ class PlayPauseButton extends HookConsumerWidget { width: size / 3, child: CircularProgressIndicator( strokeWidth: size / 16, - color: Theme.of(context).colorScheme.background, + color: Theme.of(context).colorScheme.surface, ), ), ], @@ -195,7 +195,7 @@ class PlayPauseButton extends HookConsumerWidget { } }, icon: icon, - color: Theme.of(context).colorScheme.onBackground, + color: Theme.of(context).colorScheme.surface, ); } } diff --git a/lib/app/pages/bottom_nav_page.dart b/lib/app/pages/bottom_nav_page.dart index 5a5a3be..e5dbcdc 100644 --- a/lib/app/pages/bottom_nav_page.dart +++ b/lib/app/pages/bottom_nav_page.dart @@ -111,13 +111,13 @@ class OfflineIndicator extends HookConsumerWidget { ), child: FilledButton.tonal( style: const ButtonStyle( - padding: MaterialStatePropertyAll( + padding: WidgetStatePropertyAll( EdgeInsets.zero, ), - fixedSize: MaterialStatePropertyAll( + fixedSize: WidgetStatePropertyAll( Size(42, 42), ), - minimumSize: MaterialStatePropertyAll( + minimumSize: WidgetStatePropertyAll( Size(42, 42), ), ), diff --git a/lib/app/pages/bottom_nav_page.g.dart b/lib/app/pages/bottom_nav_page.g.dart index 3980e96..fa31e36 100644 --- a/lib/app/pages/bottom_nav_page.g.dart +++ b/lib/app/pages/bottom_nav_page.g.dart @@ -53,4 +53,5 @@ final lastBottomNavStateServiceProvider = ); typedef _$LastBottomNavStateService = AsyncNotifier; -// ignore_for_file: unnecessary_raw_strings, subtype_of_sealed_class, invalid_use_of_internal_member, do_not_use_environment, prefer_const_constructors, public_member_api_docs, avoid_private_typedef_functions +// ignore_for_file: type=lint +// ignore_for_file: subtype_of_sealed_class, invalid_use_of_internal_member, invalid_use_of_visible_for_testing_member diff --git a/lib/app/pages/browse_page.g.dart b/lib/app/pages/browse_page.g.dart index b5f0cb9..c946775 100644 --- a/lib/app/pages/browse_page.g.dart +++ b/lib/app/pages/browse_page.g.dart @@ -30,8 +30,6 @@ class _SystemHash { } } -typedef AlbumsCategoryListRef = AutoDisposeStreamProviderRef>; - /// See also [albumsCategoryList]. @ProviderFor(albumsCategoryList) const albumsCategoryListProvider = AlbumsCategoryListFamily(); @@ -79,10 +77,10 @@ class AlbumsCategoryListProvider extends AutoDisposeStreamProvider> { /// See also [albumsCategoryList]. AlbumsCategoryListProvider( - this.opt, - ) : super.internal( + ListQuery opt, + ) : this._internal( (ref) => albumsCategoryList( - ref, + ref as AlbumsCategoryListRef, opt, ), from: albumsCategoryListProvider, @@ -94,10 +92,44 @@ class AlbumsCategoryListProvider dependencies: AlbumsCategoryListFamily._dependencies, allTransitiveDependencies: AlbumsCategoryListFamily._allTransitiveDependencies, + opt: opt, ); + AlbumsCategoryListProvider._internal( + super._createNotifier, { + required super.name, + required super.dependencies, + required super.allTransitiveDependencies, + required super.debugGetCreateSourceHash, + required super.from, + required this.opt, + }) : super.internal(); + final ListQuery opt; + @override + Override overrideWith( + Stream> Function(AlbumsCategoryListRef provider) create, + ) { + return ProviderOverride( + origin: this, + override: AlbumsCategoryListProvider._internal( + (ref) => create(ref as AlbumsCategoryListRef), + from: from, + name: null, + dependencies: null, + allTransitiveDependencies: null, + debugGetCreateSourceHash: null, + opt: opt, + ), + ); + } + + @override + AutoDisposeStreamProviderElement> createElement() { + return _AlbumsCategoryListProviderElement(this); + } + @override bool operator ==(Object other) { return other is AlbumsCategoryListProvider && other.opt == opt; @@ -111,4 +143,19 @@ class AlbumsCategoryListProvider return _SystemHash.finish(hash); } } -// ignore_for_file: unnecessary_raw_strings, subtype_of_sealed_class, invalid_use_of_internal_member, do_not_use_environment, prefer_const_constructors, public_member_api_docs, avoid_private_typedef_functions + +mixin AlbumsCategoryListRef on AutoDisposeStreamProviderRef> { + /// The parameter `opt` of this provider. + ListQuery get opt; +} + +class _AlbumsCategoryListProviderElement + extends AutoDisposeStreamProviderElement> + with AlbumsCategoryListRef { + _AlbumsCategoryListProviderElement(super.provider); + + @override + ListQuery get opt => (origin as AlbumsCategoryListProvider).opt; +} +// ignore_for_file: type=lint +// ignore_for_file: subtype_of_sealed_class, invalid_use_of_internal_member, invalid_use_of_visible_for_testing_member diff --git a/lib/app/pages/library_page.g.dart b/lib/app/pages/library_page.g.dart index 65ddfa2..094c3ec 100644 --- a/lib/app/pages/library_page.g.dart +++ b/lib/app/pages/library_page.g.dart @@ -60,8 +60,6 @@ class _SystemHash { } } -typedef LibraryListQueryRef = ProviderRef; - /// See also [libraryListQuery]. @ProviderFor(libraryListQuery) const libraryListQueryProvider = LibraryListQueryFamily(); @@ -108,10 +106,10 @@ class LibraryListQueryFamily extends Family { class LibraryListQueryProvider extends Provider { /// See also [libraryListQuery]. LibraryListQueryProvider( - this.index, - ) : super.internal( + int index, + ) : this._internal( (ref) => libraryListQuery( - ref, + ref as LibraryListQueryRef, index, ), from: libraryListQueryProvider, @@ -123,10 +121,44 @@ class LibraryListQueryProvider extends Provider { dependencies: LibraryListQueryFamily._dependencies, allTransitiveDependencies: LibraryListQueryFamily._allTransitiveDependencies, + index: index, ); + LibraryListQueryProvider._internal( + super._createNotifier, { + required super.name, + required super.dependencies, + required super.allTransitiveDependencies, + required super.debugGetCreateSourceHash, + required super.from, + required this.index, + }) : super.internal(); + final int index; + @override + Override overrideWith( + LibraryListQuery Function(LibraryListQueryRef provider) create, + ) { + return ProviderOverride( + origin: this, + override: LibraryListQueryProvider._internal( + (ref) => create(ref as LibraryListQueryRef), + from: from, + name: null, + dependencies: null, + allTransitiveDependencies: null, + debugGetCreateSourceHash: null, + index: index, + ), + ); + } + + @override + ProviderElement createElement() { + return _LibraryListQueryProviderElement(this); + } + @override bool operator ==(Object other) { return other is LibraryListQueryProvider && other.index == index; @@ -141,6 +173,19 @@ class LibraryListQueryProvider extends Provider { } } +mixin LibraryListQueryRef on ProviderRef { + /// The parameter `index` of this provider. + int get index; +} + +class _LibraryListQueryProviderElement extends ProviderElement + with LibraryListQueryRef { + _LibraryListQueryProviderElement(super.provider); + + @override + int get index => (origin as LibraryListQueryProvider).index; +} + String _$lastLibraryStateServiceHash() => r'a49e26b5dc0fcb0f697ec2def08e7336f64c4cb3'; @@ -173,4 +218,5 @@ final libraryListsProvider = ); typedef _$LibraryLists = Notifier>; -// ignore_for_file: unnecessary_raw_strings, subtype_of_sealed_class, invalid_use_of_internal_member, do_not_use_environment, prefer_const_constructors, public_member_api_docs, avoid_private_typedef_functions +// ignore_for_file: type=lint +// ignore_for_file: subtype_of_sealed_class, invalid_use_of_internal_member, invalid_use_of_visible_for_testing_member diff --git a/lib/app/pages/library_songs_page.g.dart b/lib/app/pages/library_songs_page.g.dart index 11190d5..8d5638f 100644 --- a/lib/app/pages/library_songs_page.g.dart +++ b/lib/app/pages/library_songs_page.g.dart @@ -29,8 +29,6 @@ class _SystemHash { } } -typedef SongsListRef = AutoDisposeFutureProviderRef>; - /// See also [songsList]. @ProviderFor(songsList) const songsListProvider = SongsListFamily(); @@ -77,10 +75,10 @@ class SongsListFamily extends Family>> { class SongsListProvider extends AutoDisposeFutureProvider> { /// See also [songsList]. SongsListProvider( - this.opt, - ) : super.internal( + ListQuery opt, + ) : this._internal( (ref) => songsList( - ref, + ref as SongsListRef, opt, ), from: songsListProvider, @@ -91,10 +89,44 @@ class SongsListProvider extends AutoDisposeFutureProvider> { : _$songsListHash, dependencies: SongsListFamily._dependencies, allTransitiveDependencies: SongsListFamily._allTransitiveDependencies, + opt: opt, ); + SongsListProvider._internal( + super._createNotifier, { + required super.name, + required super.dependencies, + required super.allTransitiveDependencies, + required super.debugGetCreateSourceHash, + required super.from, + required this.opt, + }) : super.internal(); + final ListQuery opt; + @override + Override overrideWith( + FutureOr> Function(SongsListRef provider) create, + ) { + return ProviderOverride( + origin: this, + override: SongsListProvider._internal( + (ref) => create(ref as SongsListRef), + from: from, + name: null, + dependencies: null, + allTransitiveDependencies: null, + debugGetCreateSourceHash: null, + opt: opt, + ), + ); + } + + @override + AutoDisposeFutureProviderElement> createElement() { + return _SongsListProviderElement(this); + } + @override bool operator ==(Object other) { return other is SongsListProvider && other.opt == opt; @@ -108,4 +140,18 @@ class SongsListProvider extends AutoDisposeFutureProvider> { return _SystemHash.finish(hash); } } -// ignore_for_file: unnecessary_raw_strings, subtype_of_sealed_class, invalid_use_of_internal_member, do_not_use_environment, prefer_const_constructors, public_member_api_docs, avoid_private_typedef_functions + +mixin SongsListRef on AutoDisposeFutureProviderRef> { + /// The parameter `opt` of this provider. + ListQuery get opt; +} + +class _SongsListProviderElement + extends AutoDisposeFutureProviderElement> with SongsListRef { + _SongsListProviderElement(super.provider); + + @override + ListQuery get opt => (origin as SongsListProvider).opt; +} +// ignore_for_file: type=lint +// ignore_for_file: subtype_of_sealed_class, invalid_use_of_internal_member, invalid_use_of_visible_for_testing_member diff --git a/lib/app/pages/now_playing_page.dart b/lib/app/pages/now_playing_page.dart index 8eecb00..426955b 100644 --- a/lib/app/pages/now_playing_page.dart +++ b/lib/app/pages/now_playing_page.dart @@ -55,13 +55,13 @@ class NowPlayingPage extends HookConsumerWidget { ], ), ), - body: Stack( + body: const Stack( children: [ - const MediaItemGradient(), + MediaItemGradient(), Padding( - padding: const EdgeInsets.symmetric(horizontal: 8, vertical: 8), + padding: EdgeInsets.symmetric(horizontal: 8, vertical: 8), child: Column( - children: const [ + children: [ Expanded( child: Padding( padding: EdgeInsets.symmetric(horizontal: 16), @@ -229,8 +229,8 @@ class _Progress extends HookConsumerWidget { value: changing.value ? changeValue.value : position.toDouble(), min: 0, max: max(duration.toDouble(), position.toDouble()), - thumbColor: colors?.theme.colorScheme.onBackground, - activeColor: colors?.theme.colorScheme.onBackground, + thumbColor: colors?.theme.colorScheme.surface, + activeColor: colors?.theme.colorScheme.surface, inactiveColor: colors?.theme.colorScheme.surface, onChanged: (value) { changeValue.value = value; @@ -354,7 +354,7 @@ class _Controls extends HookConsumerWidget { final audio = ref.watch(audioControlProvider); return IconTheme( - data: IconThemeData(color: base.theme.colorScheme.onBackground), + data: IconThemeData(color: base.theme.colorScheme.surface), child: Column( children: [ SizedBox( diff --git a/lib/app/pages/search_page.g.dart b/lib/app/pages/search_page.g.dart index 4a0b674..7592a56 100644 --- a/lib/app/pages/search_page.g.dart +++ b/lib/app/pages/search_page.g.dart @@ -35,4 +35,5 @@ final searchQueryProvider = ); typedef _$SearchQuery = AutoDisposeNotifier; -// ignore_for_file: unnecessary_raw_strings, subtype_of_sealed_class, invalid_use_of_internal_member, do_not_use_environment, prefer_const_constructors, public_member_api_docs, avoid_private_typedef_functions +// ignore_for_file: type=lint +// ignore_for_file: subtype_of_sealed_class, invalid_use_of_internal_member, invalid_use_of_visible_for_testing_member diff --git a/lib/app/pages/settings_page.dart b/lib/app/pages/settings_page.dart index ab90bdf..1af0854 100644 --- a/lib/app/pages/settings_page.dart +++ b/lib/app/pages/settings_page.dart @@ -191,7 +191,7 @@ class _ShareLogsButton extends StatelessWidget { final files = await logFiles(); if (files.isEmpty) return; - // ignore: use_build_context_synchronously + if (!context.mounted) return; final value = await showDialog( context: context, builder: (context) => MultipleChoiceDialog( diff --git a/lib/app/pages/source_page.dart b/lib/app/pages/source_page.dart index 8e635c2..6f44a71 100644 --- a/lib/app/pages/source_page.dart +++ b/lib/app/pages/source_page.dart @@ -76,8 +76,8 @@ class SourcePage extends HookConsumerWidget { onChanged: (value) => forcePlaintextPassword.value = value, ); - return WillPopScope( - onWillPop: () async => !isSaving.value && !isDeleting.value, + return PopScope( + canPop: !isSaving.value && !isDeleting.value, child: Scaffold( appBar: AppBar(), floatingActionButton: Row( @@ -164,6 +164,7 @@ class SourcePage extends HookConsumerWidget { ); } } catch (e, st) { + if (!context.mounted) return; showErrorSnackbar(context, e.toString()); log.severe('Saving source', e, st); error = true; diff --git a/lib/cache/image_cache.g.dart b/lib/cache/image_cache.g.dart index 9534c05..7683085 100644 --- a/lib/cache/image_cache.g.dart +++ b/lib/cache/image_cache.g.dart @@ -20,4 +20,5 @@ final imageCacheProvider = Provider.internal( ); typedef ImageCacheRef = ProviderRef; -// ignore_for_file: unnecessary_raw_strings, subtype_of_sealed_class, invalid_use_of_internal_member, do_not_use_environment, prefer_const_constructors, public_member_api_docs, avoid_private_typedef_functions +// ignore_for_file: type=lint +// ignore_for_file: subtype_of_sealed_class, invalid_use_of_internal_member, invalid_use_of_visible_for_testing_member diff --git a/lib/database/database.g.dart b/lib/database/database.g.dart index a379bea..2a57500 100644 --- a/lib/database/database.g.dart +++ b/lib/database/database.g.dart @@ -53,9 +53,10 @@ class Queue extends Table with TableInfo { List get $columns => [index, sourceId, id, context, contextId, currentTrack]; @override - String get aliasedName => _alias ?? 'queue'; + String get aliasedName => _alias ?? actualTableName; @override - String get actualTableName => 'queue'; + String get actualTableName => $name; + static const String $name = 'queue'; @override VerificationContext validateIntegrity(Insertable instance, {bool isInserting = false}) { @@ -144,8 +145,7 @@ class QueueData extends DataClass implements Insertable { map['source_id'] = Variable(sourceId); map['id'] = Variable(id); { - final converter = Queue.$convertercontext; - map['context'] = Variable(converter.toSql(context)); + map['context'] = Variable(Queue.$convertercontext.toSql(context)); } if (!nullToAbsent || contextId != null) { map['context_id'] = Variable(contextId); @@ -315,8 +315,8 @@ class QueueCompanion extends UpdateCompanion { map['id'] = Variable(id.value); } if (context.present) { - final converter = Queue.$convertercontext; - map['context'] = Variable(converter.toSql(context.value)); + map['context'] = + Variable(Queue.$convertercontext.toSql(context.value)); } if (contextId.present) { map['context_id'] = Variable(contextId.value); @@ -382,9 +382,10 @@ class LastAudioState extends Table List get $columns => [id, queueMode, shuffleIndicies, repeat]; @override - String get aliasedName => _alias ?? 'last_audio_state'; + String get aliasedName => _alias ?? actualTableName; @override - String get actualTableName => 'last_audio_state'; + String get actualTableName => $name; + static const String $name = 'last_audio_state'; @override VerificationContext validateIntegrity(Insertable instance, {bool isInserting = false}) { @@ -452,17 +453,16 @@ class LastAudioStateData extends DataClass final map = {}; map['id'] = Variable(id); { - final converter = LastAudioState.$converterqueueMode; - map['queue_mode'] = Variable(converter.toSql(queueMode)); + map['queue_mode'] = + Variable(LastAudioState.$converterqueueMode.toSql(queueMode)); } if (!nullToAbsent || shuffleIndicies != null) { - final converter = LastAudioState.$convertershuffleIndiciesn; - map['shuffle_indicies'] = - Variable(converter.toSql(shuffleIndicies)); + map['shuffle_indicies'] = Variable( + LastAudioState.$convertershuffleIndiciesn.toSql(shuffleIndicies)); } { - final converter = LastAudioState.$converterrepeat; - map['repeat'] = Variable(converter.toSql(repeat)); + map['repeat'] = + Variable(LastAudioState.$converterrepeat.toSql(repeat)); } return map; } @@ -592,17 +592,17 @@ class LastAudioStateCompanion extends UpdateCompanion { map['id'] = Variable(id.value); } if (queueMode.present) { - final converter = LastAudioState.$converterqueueMode; - map['queue_mode'] = Variable(converter.toSql(queueMode.value)); + map['queue_mode'] = Variable( + LastAudioState.$converterqueueMode.toSql(queueMode.value)); } if (shuffleIndicies.present) { - final converter = LastAudioState.$convertershuffleIndiciesn; - map['shuffle_indicies'] = - Variable(converter.toSql(shuffleIndicies.value)); + map['shuffle_indicies'] = Variable(LastAudioState + .$convertershuffleIndiciesn + .toSql(shuffleIndicies.value)); } if (repeat.present) { - final converter = LastAudioState.$converterrepeat; - map['repeat'] = Variable(converter.toSql(repeat.value)); + map['repeat'] = + Variable(LastAudioState.$converterrepeat.toSql(repeat.value)); } return map; } @@ -640,9 +640,10 @@ class LastBottomNavState extends Table @override List get $columns => [id, tab]; @override - String get aliasedName => _alias ?? 'last_bottom_nav_state'; + String get aliasedName => _alias ?? actualTableName; @override - String get actualTableName => 'last_bottom_nav_state'; + String get actualTableName => $name; + static const String $name = 'last_bottom_nav_state'; @override VerificationContext validateIntegrity( Insertable instance, @@ -849,9 +850,10 @@ class LastLibraryState extends Table List get $columns => [id, tab, albumsList, artistsList, playlistsList, songsList]; @override - String get aliasedName => _alias ?? 'last_library_state'; + String get aliasedName => _alias ?? actualTableName; @override - String get actualTableName => 'last_library_state'; + String get actualTableName => $name; + static const String $name = 'last_library_state'; @override VerificationContext validateIntegrity( Insertable instance, @@ -937,20 +939,20 @@ class LastLibraryStateData extends DataClass map['id'] = Variable(id); map['tab'] = Variable(tab); { - final converter = LastLibraryState.$converteralbumsList; - map['albums_list'] = Variable(converter.toSql(albumsList)); + map['albums_list'] = Variable( + LastLibraryState.$converteralbumsList.toSql(albumsList)); } { - final converter = LastLibraryState.$converterartistsList; - map['artists_list'] = Variable(converter.toSql(artistsList)); + map['artists_list'] = Variable( + LastLibraryState.$converterartistsList.toSql(artistsList)); } { - final converter = LastLibraryState.$converterplaylistsList; - map['playlists_list'] = Variable(converter.toSql(playlistsList)); + map['playlists_list'] = Variable( + LastLibraryState.$converterplaylistsList.toSql(playlistsList)); } { - final converter = LastLibraryState.$convertersongsList; - map['songs_list'] = Variable(converter.toSql(songsList)); + map['songs_list'] = Variable( + LastLibraryState.$convertersongsList.toSql(songsList)); } return map; } @@ -1106,22 +1108,20 @@ class LastLibraryStateCompanion extends UpdateCompanion { map['tab'] = Variable(tab.value); } if (albumsList.present) { - final converter = LastLibraryState.$converteralbumsList; - map['albums_list'] = Variable(converter.toSql(albumsList.value)); + map['albums_list'] = Variable( + LastLibraryState.$converteralbumsList.toSql(albumsList.value)); } if (artistsList.present) { - final converter = LastLibraryState.$converterartistsList; - map['artists_list'] = - Variable(converter.toSql(artistsList.value)); + map['artists_list'] = Variable( + LastLibraryState.$converterartistsList.toSql(artistsList.value)); } if (playlistsList.present) { - final converter = LastLibraryState.$converterplaylistsList; - map['playlists_list'] = - Variable(converter.toSql(playlistsList.value)); + map['playlists_list'] = Variable( + LastLibraryState.$converterplaylistsList.toSql(playlistsList.value)); } if (songsList.present) { - final converter = LastLibraryState.$convertersongsList; - map['songs_list'] = Variable(converter.toSql(songsList.value)); + map['songs_list'] = Variable( + LastLibraryState.$convertersongsList.toSql(songsList.value)); } return map; } @@ -1177,9 +1177,10 @@ class AppSettingsTable extends Table List get $columns => [id, maxBitrateWifi, maxBitrateMobile, streamFormat]; @override - String get aliasedName => _alias ?? 'app_settings'; + String get aliasedName => _alias ?? actualTableName; @override - String get actualTableName => 'app_settings'; + String get actualTableName => $name; + static const String $name = 'app_settings'; @override VerificationContext validateIntegrity(Insertable instance, {bool isInserting = false}) { @@ -1359,9 +1360,10 @@ class Sources extends Table with TableInfo { List get $columns => [id, name, address, isActive, createdAt]; @override - String get aliasedName => _alias ?? 'sources'; + String get aliasedName => _alias ?? actualTableName; @override - String get actualTableName => 'sources'; + String get actualTableName => $name; + static const String $name = 'sources'; @override VerificationContext validateIntegrity(Insertable instance, {bool isInserting = false}) { @@ -1435,8 +1437,8 @@ class Source extends DataClass implements Insertable { map['id'] = Variable(id); map['name'] = Variable(name); { - final converter = Sources.$converteraddress; - map['address'] = Variable(converter.toSql(address)); + map['address'] = + Variable(Sources.$converteraddress.toSql(address)); } if (!nullToAbsent || isActive != null) { map['is_active'] = Variable(isActive); @@ -1580,8 +1582,8 @@ class SourcesCompanion extends UpdateCompanion { map['name'] = Variable(name.value); } if (address.present) { - final converter = Sources.$converteraddress; - map['address'] = Variable(converter.toSql(address.value)); + map['address'] = + Variable(Sources.$converteraddress.toSql(address.value)); } if (isActive.present) { map['is_active'] = Variable(isActive.value); @@ -1653,9 +1655,10 @@ class SubsonicSources extends Table List get $columns => [sourceId, features, username, password, useTokenAuth]; @override - String get aliasedName => _alias ?? 'subsonic_sources'; + String get aliasedName => _alias ?? actualTableName; @override - String get actualTableName => 'subsonic_sources'; + String get actualTableName => $name; + static const String $name = 'subsonic_sources'; @override VerificationContext validateIntegrity(Insertable instance, {bool isInserting = false}) { @@ -1738,8 +1741,8 @@ class SubsonicSource extends DataClass implements Insertable { final map = {}; map['source_id'] = Variable(sourceId); { - final converter = SubsonicSources.$converterfeatures; - map['features'] = Variable(converter.toSql(features)); + map['features'] = + Variable(SubsonicSources.$converterfeatures.toSql(features)); } map['username'] = Variable(username); map['password'] = Variable(password); @@ -1879,8 +1882,8 @@ class SubsonicSourcesCompanion extends UpdateCompanion { map['source_id'] = Variable(sourceId.value); } if (features.present) { - final converter = SubsonicSources.$converterfeatures; - map['features'] = Variable(converter.toSql(features.value)); + map['features'] = Variable( + SubsonicSources.$converterfeatures.toSql(features.value)); } if (username.present) { map['username'] = Variable(username.value); @@ -1959,9 +1962,10 @@ class Artists extends Table with TableInfo { List get $columns => [sourceId, id, name, albumCount, starred, updated]; @override - String get aliasedName => _alias ?? 'artists'; + String get aliasedName => _alias ?? actualTableName; @override - String get actualTableName => 'artists'; + String get actualTableName => $name; + static const String $name = 'artists'; @override VerificationContext validateIntegrity(Insertable instance, {bool isInserting = false}) { @@ -2170,9 +2174,10 @@ class ArtistsFts extends Table @override List get $columns => [sourceId, name]; @override - String get aliasedName => _alias ?? 'artists_fts'; + String get aliasedName => _alias ?? actualTableName; @override - String get actualTableName => 'artists_fts'; + String get actualTableName => $name; + static const String $name = 'artists_fts'; @override VerificationContext validateIntegrity(Insertable instance, {bool isInserting = false}) { @@ -2468,9 +2473,10 @@ class Albums extends Table with TableInfo { updated ]; @override - String get aliasedName => _alias ?? 'albums'; + String get aliasedName => _alias ?? actualTableName; @override - String get actualTableName => 'albums'; + String get actualTableName => $name; + static const String $name = 'albums'; @override VerificationContext validateIntegrity(Insertable instance, {bool isInserting = false}) { @@ -2837,9 +2843,10 @@ class AlbumsFts extends Table @override List get $columns => [sourceId, name]; @override - String get aliasedName => _alias ?? 'albums_fts'; + String get aliasedName => _alias ?? actualTableName; @override - String get actualTableName => 'albums_fts'; + String get actualTableName => $name; + static const String $name = 'albums_fts'; @override VerificationContext validateIntegrity(Insertable instance, {bool isInserting = false}) { @@ -3072,9 +3079,10 @@ class Playlists extends Table with TableInfo { List get $columns => [sourceId, id, name, comment, coverArt, songCount, created, updated]; @override - String get aliasedName => _alias ?? 'playlists'; + String get aliasedName => _alias ?? actualTableName; @override - String get actualTableName => 'playlists'; + String get actualTableName => $name; + static const String $name = 'playlists'; @override VerificationContext validateIntegrity(Insertable instance, {bool isInserting = false}) { @@ -3340,9 +3348,10 @@ class PlaylistSongs extends Table with TableInfo { List get $columns => [sourceId, playlistId, songId, position, updated]; @override - String get aliasedName => _alias ?? 'playlist_songs'; + String get aliasedName => _alias ?? actualTableName; @override - String get actualTableName => 'playlist_songs'; + String get actualTableName => $name; + static const String $name = 'playlist_songs'; @override VerificationContext validateIntegrity(Insertable instance, {bool isInserting = false}) { @@ -3632,9 +3641,10 @@ class PlaylistsFts extends Table @override List get $columns => [sourceId, name]; @override - String get aliasedName => _alias ?? 'playlists_fts'; + String get aliasedName => _alias ?? actualTableName; @override - String get actualTableName => 'playlists_fts'; + String get actualTableName => $name; + static const String $name = 'playlists_fts'; @override VerificationContext validateIntegrity(Insertable instance, {bool isInserting = false}) { @@ -3936,9 +3946,10 @@ class Songs extends Table with TableInfo { updated ]; @override - String get aliasedName => _alias ?? 'songs'; + String get aliasedName => _alias ?? actualTableName; @override - String get actualTableName => 'songs'; + String get actualTableName => $name; + static const String $name = 'songs'; @override VerificationContext validateIntegrity(Insertable instance, {bool isInserting = false}) { @@ -4236,8 +4247,8 @@ class SongsCompanion extends UpdateCompanion { map['artist'] = Variable(artist.value); } if (duration.present) { - final converter = Songs.$converterdurationn; - map['duration'] = Variable(converter.toSql(duration.value)); + map['duration'] = + Variable(Songs.$converterdurationn.toSql(duration.value)); } if (track.present) { map['track'] = Variable(track.value); @@ -4316,9 +4327,10 @@ class SongsFts extends Table @override List get $columns => [sourceId, title]; @override - String get aliasedName => _alias ?? 'songs_fts'; + String get aliasedName => _alias ?? actualTableName; @override - String get actualTableName => 'songs_fts'; + String get actualTableName => $name; + static const String $name = 'songs_fts'; @override VerificationContext validateIntegrity(Insertable instance, {bool isInserting = false}) { @@ -5570,4 +5582,5 @@ final databaseProvider = Provider.internal( ); typedef DatabaseRef = ProviderRef; -// ignore_for_file: unnecessary_raw_strings, subtype_of_sealed_class, invalid_use_of_internal_member, do_not_use_environment, prefer_const_constructors, public_member_api_docs, avoid_private_typedef_functions +// ignore_for_file: type=lint +// ignore_for_file: subtype_of_sealed_class, invalid_use_of_internal_member, invalid_use_of_visible_for_testing_member diff --git a/lib/http/client.g.dart b/lib/http/client.g.dart index 36e5986..cf39bbe 100644 --- a/lib/http/client.g.dart +++ b/lib/http/client.g.dart @@ -20,4 +20,5 @@ final httpClientProvider = Provider.internal( ); typedef HttpClientRef = ProviderRef; -// ignore_for_file: unnecessary_raw_strings, subtype_of_sealed_class, invalid_use_of_internal_member, do_not_use_environment, prefer_const_constructors, public_member_api_docs, avoid_private_typedef_functions +// ignore_for_file: type=lint +// ignore_for_file: subtype_of_sealed_class, invalid_use_of_internal_member, invalid_use_of_visible_for_testing_member diff --git a/lib/models/music.freezed.dart b/lib/models/music.freezed.dart index ff88468..ffe6873 100644 --- a/lib/models/music.freezed.dart +++ b/lib/models/music.freezed.dart @@ -12,7 +12,7 @@ part of 'music.dart'; T _$identity(T value) => value; final _privateConstructorUsedError = UnsupportedError( - 'It seems like you constructed your class using `MyClass._()`. This constructor is only meant to be used by freezed and you are not supposed to need it nor use it.\nPlease check the documentation here for more information: https://github.com/rrousselGit/freezed#custom-getters-and-methods'); + 'It seems like you constructed your class using `MyClass._()`. This constructor is only meant to be used by freezed and you are not supposed to need it nor use it.\nPlease check the documentation here for more information: https://github.com/rrousselGit/freezed#adding-getters-and-methods-to-our-models'); /// @nodoc mixin _$SourceId { @@ -62,21 +62,22 @@ class _$SourceIdCopyWithImpl<$Res, $Val extends SourceId> } /// @nodoc -abstract class _$$_SourceIdCopyWith<$Res> implements $SourceIdCopyWith<$Res> { - factory _$$_SourceIdCopyWith( - _$_SourceId value, $Res Function(_$_SourceId) then) = - __$$_SourceIdCopyWithImpl<$Res>; +abstract class _$$SourceIdImplCopyWith<$Res> + implements $SourceIdCopyWith<$Res> { + factory _$$SourceIdImplCopyWith( + _$SourceIdImpl value, $Res Function(_$SourceIdImpl) then) = + __$$SourceIdImplCopyWithImpl<$Res>; @override @useResult $Res call({int sourceId, String id}); } /// @nodoc -class __$$_SourceIdCopyWithImpl<$Res> - extends _$SourceIdCopyWithImpl<$Res, _$_SourceId> - implements _$$_SourceIdCopyWith<$Res> { - __$$_SourceIdCopyWithImpl( - _$_SourceId _value, $Res Function(_$_SourceId) _then) +class __$$SourceIdImplCopyWithImpl<$Res> + extends _$SourceIdCopyWithImpl<$Res, _$SourceIdImpl> + implements _$$SourceIdImplCopyWith<$Res> { + __$$SourceIdImplCopyWithImpl( + _$SourceIdImpl _value, $Res Function(_$SourceIdImpl) _then) : super(_value, _then); @pragma('vm:prefer-inline') @@ -85,7 +86,7 @@ class __$$_SourceIdCopyWithImpl<$Res> Object? sourceId = null, Object? id = null, }) { - return _then(_$_SourceId( + return _then(_$SourceIdImpl( sourceId: null == sourceId ? _value.sourceId : sourceId // ignore: cast_nullable_to_non_nullable @@ -100,8 +101,8 @@ class __$$_SourceIdCopyWithImpl<$Res> /// @nodoc -class _$_SourceId with DiagnosticableTreeMixin implements _SourceId { - const _$_SourceId({required this.sourceId, required this.id}); +class _$SourceIdImpl with DiagnosticableTreeMixin implements _SourceId { + const _$SourceIdImpl({required this.sourceId, required this.id}); @override final int sourceId; @@ -123,10 +124,10 @@ class _$_SourceId with DiagnosticableTreeMixin implements _SourceId { } @override - bool operator ==(dynamic other) { + bool operator ==(Object other) { return identical(this, other) || (other.runtimeType == runtimeType && - other is _$_SourceId && + other is _$SourceIdImpl && (identical(other.sourceId, sourceId) || other.sourceId == sourceId) && (identical(other.id, id) || other.id == id)); @@ -138,13 +139,13 @@ class _$_SourceId with DiagnosticableTreeMixin implements _SourceId { @JsonKey(ignore: true) @override @pragma('vm:prefer-inline') - _$$_SourceIdCopyWith<_$_SourceId> get copyWith => - __$$_SourceIdCopyWithImpl<_$_SourceId>(this, _$identity); + _$$SourceIdImplCopyWith<_$SourceIdImpl> get copyWith => + __$$SourceIdImplCopyWithImpl<_$SourceIdImpl>(this, _$identity); } abstract class _SourceId implements SourceId { const factory _SourceId( - {required final int sourceId, required final String id}) = _$_SourceId; + {required final int sourceId, required final String id}) = _$SourceIdImpl; @override int get sourceId; @@ -152,7 +153,7 @@ abstract class _SourceId implements SourceId { String get id; @override @JsonKey(ignore: true) - _$$_SourceIdCopyWith<_$_SourceId> get copyWith => + _$$SourceIdImplCopyWith<_$SourceIdImpl> get copyWith => throw _privateConstructorUsedError; } @@ -205,22 +206,22 @@ class _$SourceIdSetCopyWithImpl<$Res, $Val extends SourceIdSet> } /// @nodoc -abstract class _$$_SourceIdSetCopyWith<$Res> +abstract class _$$SourceIdSetImplCopyWith<$Res> implements $SourceIdSetCopyWith<$Res> { - factory _$$_SourceIdSetCopyWith( - _$_SourceIdSet value, $Res Function(_$_SourceIdSet) then) = - __$$_SourceIdSetCopyWithImpl<$Res>; + factory _$$SourceIdSetImplCopyWith( + _$SourceIdSetImpl value, $Res Function(_$SourceIdSetImpl) then) = + __$$SourceIdSetImplCopyWithImpl<$Res>; @override @useResult $Res call({int sourceId, ISet ids}); } /// @nodoc -class __$$_SourceIdSetCopyWithImpl<$Res> - extends _$SourceIdSetCopyWithImpl<$Res, _$_SourceIdSet> - implements _$$_SourceIdSetCopyWith<$Res> { - __$$_SourceIdSetCopyWithImpl( - _$_SourceIdSet _value, $Res Function(_$_SourceIdSet) _then) +class __$$SourceIdSetImplCopyWithImpl<$Res> + extends _$SourceIdSetCopyWithImpl<$Res, _$SourceIdSetImpl> + implements _$$SourceIdSetImplCopyWith<$Res> { + __$$SourceIdSetImplCopyWithImpl( + _$SourceIdSetImpl _value, $Res Function(_$SourceIdSetImpl) _then) : super(_value, _then); @pragma('vm:prefer-inline') @@ -229,7 +230,7 @@ class __$$_SourceIdSetCopyWithImpl<$Res> Object? sourceId = null, Object? ids = null, }) { - return _then(_$_SourceIdSet( + return _then(_$SourceIdSetImpl( sourceId: null == sourceId ? _value.sourceId : sourceId // ignore: cast_nullable_to_non_nullable @@ -244,8 +245,8 @@ class __$$_SourceIdSetCopyWithImpl<$Res> /// @nodoc -class _$_SourceIdSet with DiagnosticableTreeMixin implements _SourceIdSet { - const _$_SourceIdSet({required this.sourceId, required this.ids}); +class _$SourceIdSetImpl with DiagnosticableTreeMixin implements _SourceIdSet { + const _$SourceIdSetImpl({required this.sourceId, required this.ids}); @override final int sourceId; @@ -267,10 +268,10 @@ class _$_SourceIdSet with DiagnosticableTreeMixin implements _SourceIdSet { } @override - bool operator ==(dynamic other) { + bool operator ==(Object other) { return identical(this, other) || (other.runtimeType == runtimeType && - other is _$_SourceIdSet && + other is _$SourceIdSetImpl && (identical(other.sourceId, sourceId) || other.sourceId == sourceId) && const DeepCollectionEquality().equals(other.ids, ids)); @@ -283,14 +284,14 @@ class _$_SourceIdSet with DiagnosticableTreeMixin implements _SourceIdSet { @JsonKey(ignore: true) @override @pragma('vm:prefer-inline') - _$$_SourceIdSetCopyWith<_$_SourceIdSet> get copyWith => - __$$_SourceIdSetCopyWithImpl<_$_SourceIdSet>(this, _$identity); + _$$SourceIdSetImplCopyWith<_$SourceIdSetImpl> get copyWith => + __$$SourceIdSetImplCopyWithImpl<_$SourceIdSetImpl>(this, _$identity); } abstract class _SourceIdSet implements SourceIdSet { const factory _SourceIdSet( {required final int sourceId, - required final ISet ids}) = _$_SourceIdSet; + required final ISet ids}) = _$SourceIdSetImpl; @override int get sourceId; @@ -298,7 +299,7 @@ abstract class _SourceIdSet implements SourceIdSet { ISet get ids; @override @JsonKey(ignore: true) - _$$_SourceIdSetCopyWith<_$_SourceIdSet> get copyWith => + _$$SourceIdSetImplCopyWith<_$SourceIdSetImpl> get copyWith => throw _privateConstructorUsedError; } @@ -372,9 +373,10 @@ class _$ArtistCopyWithImpl<$Res, $Val extends Artist> } /// @nodoc -abstract class _$$_ArtistCopyWith<$Res> implements $ArtistCopyWith<$Res> { - factory _$$_ArtistCopyWith(_$_Artist value, $Res Function(_$_Artist) then) = - __$$_ArtistCopyWithImpl<$Res>; +abstract class _$$ArtistImplCopyWith<$Res> implements $ArtistCopyWith<$Res> { + factory _$$ArtistImplCopyWith( + _$ArtistImpl value, $Res Function(_$ArtistImpl) then) = + __$$ArtistImplCopyWithImpl<$Res>; @override @useResult $Res call( @@ -386,10 +388,11 @@ abstract class _$$_ArtistCopyWith<$Res> implements $ArtistCopyWith<$Res> { } /// @nodoc -class __$$_ArtistCopyWithImpl<$Res> - extends _$ArtistCopyWithImpl<$Res, _$_Artist> - implements _$$_ArtistCopyWith<$Res> { - __$$_ArtistCopyWithImpl(_$_Artist _value, $Res Function(_$_Artist) _then) +class __$$ArtistImplCopyWithImpl<$Res> + extends _$ArtistCopyWithImpl<$Res, _$ArtistImpl> + implements _$$ArtistImplCopyWith<$Res> { + __$$ArtistImplCopyWithImpl( + _$ArtistImpl _value, $Res Function(_$ArtistImpl) _then) : super(_value, _then); @pragma('vm:prefer-inline') @@ -401,7 +404,7 @@ class __$$_ArtistCopyWithImpl<$Res> Object? albumCount = null, Object? starred = freezed, }) { - return _then(_$_Artist( + return _then(_$ArtistImpl( sourceId: null == sourceId ? _value.sourceId : sourceId // ignore: cast_nullable_to_non_nullable @@ -428,8 +431,8 @@ class __$$_ArtistCopyWithImpl<$Res> /// @nodoc -class _$_Artist with DiagnosticableTreeMixin implements _Artist { - const _$_Artist( +class _$ArtistImpl with DiagnosticableTreeMixin implements _Artist { + const _$ArtistImpl( {required this.sourceId, required this.id, required this.name, @@ -465,10 +468,10 @@ class _$_Artist with DiagnosticableTreeMixin implements _Artist { } @override - bool operator ==(dynamic other) { + bool operator ==(Object other) { return identical(this, other) || (other.runtimeType == runtimeType && - other is _$_Artist && + other is _$ArtistImpl && (identical(other.sourceId, sourceId) || other.sourceId == sourceId) && (identical(other.id, id) || other.id == id) && @@ -485,8 +488,8 @@ class _$_Artist with DiagnosticableTreeMixin implements _Artist { @JsonKey(ignore: true) @override @pragma('vm:prefer-inline') - _$$_ArtistCopyWith<_$_Artist> get copyWith => - __$$_ArtistCopyWithImpl<_$_Artist>(this, _$identity); + _$$ArtistImplCopyWith<_$ArtistImpl> get copyWith => + __$$ArtistImplCopyWithImpl<_$ArtistImpl>(this, _$identity); } abstract class _Artist implements Artist { @@ -495,7 +498,7 @@ abstract class _Artist implements Artist { required final String id, required final String name, required final int albumCount, - final DateTime? starred}) = _$_Artist; + final DateTime? starred}) = _$ArtistImpl; @override int get sourceId; @@ -509,7 +512,7 @@ abstract class _Artist implements Artist { DateTime? get starred; @override @JsonKey(ignore: true) - _$$_ArtistCopyWith<_$_Artist> get copyWith => + _$$ArtistImplCopyWith<_$ArtistImpl> get copyWith => throw _privateConstructorUsedError; } @@ -648,9 +651,10 @@ class _$AlbumCopyWithImpl<$Res, $Val extends Album> } /// @nodoc -abstract class _$$_AlbumCopyWith<$Res> implements $AlbumCopyWith<$Res> { - factory _$$_AlbumCopyWith(_$_Album value, $Res Function(_$_Album) then) = - __$$_AlbumCopyWithImpl<$Res>; +abstract class _$$AlbumImplCopyWith<$Res> implements $AlbumCopyWith<$Res> { + factory _$$AlbumImplCopyWith( + _$AlbumImpl value, $Res Function(_$AlbumImpl) then) = + __$$AlbumImplCopyWithImpl<$Res>; @override @useResult $Res call( @@ -671,9 +675,11 @@ abstract class _$$_AlbumCopyWith<$Res> implements $AlbumCopyWith<$Res> { } /// @nodoc -class __$$_AlbumCopyWithImpl<$Res> extends _$AlbumCopyWithImpl<$Res, _$_Album> - implements _$$_AlbumCopyWith<$Res> { - __$$_AlbumCopyWithImpl(_$_Album _value, $Res Function(_$_Album) _then) +class __$$AlbumImplCopyWithImpl<$Res> + extends _$AlbumCopyWithImpl<$Res, _$AlbumImpl> + implements _$$AlbumImplCopyWith<$Res> { + __$$AlbumImplCopyWithImpl( + _$AlbumImpl _value, $Res Function(_$AlbumImpl) _then) : super(_value, _then); @pragma('vm:prefer-inline') @@ -694,7 +700,7 @@ class __$$_AlbumCopyWithImpl<$Res> extends _$AlbumCopyWithImpl<$Res, _$_Album> Object? frequentRank = freezed, Object? recentRank = freezed, }) { - return _then(_$_Album( + return _then(_$AlbumImpl( sourceId: null == sourceId ? _value.sourceId : sourceId // ignore: cast_nullable_to_non_nullable @@ -757,8 +763,8 @@ class __$$_AlbumCopyWithImpl<$Res> extends _$AlbumCopyWithImpl<$Res, _$_Album> /// @nodoc -class _$_Album with DiagnosticableTreeMixin implements _Album { - const _$_Album( +class _$AlbumImpl with DiagnosticableTreeMixin implements _Album { + const _$AlbumImpl( {required this.sourceId, required this.id, required this.name, @@ -833,10 +839,10 @@ class _$_Album with DiagnosticableTreeMixin implements _Album { } @override - bool operator ==(dynamic other) { + bool operator ==(Object other) { return identical(this, other) || (other.runtimeType == runtimeType && - other is _$_Album && + other is _$AlbumImpl && (identical(other.sourceId, sourceId) || other.sourceId == sourceId) && (identical(other.id, id) || other.id == id) && @@ -882,8 +888,8 @@ class _$_Album with DiagnosticableTreeMixin implements _Album { @JsonKey(ignore: true) @override @pragma('vm:prefer-inline') - _$$_AlbumCopyWith<_$_Album> get copyWith => - __$$_AlbumCopyWithImpl<_$_Album>(this, _$identity); + _$$AlbumImplCopyWith<_$AlbumImpl> get copyWith => + __$$AlbumImplCopyWithImpl<_$AlbumImpl>(this, _$identity); } abstract class _Album implements Album { @@ -901,7 +907,7 @@ abstract class _Album implements Album { required final int songCount, final bool isDeleted, final int? frequentRank, - final int? recentRank}) = _$_Album; + final int? recentRank}) = _$AlbumImpl; @override int get sourceId; @@ -933,7 +939,7 @@ abstract class _Album implements Album { int? get recentRank; @override @JsonKey(ignore: true) - _$$_AlbumCopyWith<_$_Album> get copyWith => + _$$AlbumImplCopyWith<_$AlbumImpl> get copyWith => throw _privateConstructorUsedError; } @@ -1022,10 +1028,11 @@ class _$PlaylistCopyWithImpl<$Res, $Val extends Playlist> } /// @nodoc -abstract class _$$_PlaylistCopyWith<$Res> implements $PlaylistCopyWith<$Res> { - factory _$$_PlaylistCopyWith( - _$_Playlist value, $Res Function(_$_Playlist) then) = - __$$_PlaylistCopyWithImpl<$Res>; +abstract class _$$PlaylistImplCopyWith<$Res> + implements $PlaylistCopyWith<$Res> { + factory _$$PlaylistImplCopyWith( + _$PlaylistImpl value, $Res Function(_$PlaylistImpl) then) = + __$$PlaylistImplCopyWithImpl<$Res>; @override @useResult $Res call( @@ -1039,11 +1046,11 @@ abstract class _$$_PlaylistCopyWith<$Res> implements $PlaylistCopyWith<$Res> { } /// @nodoc -class __$$_PlaylistCopyWithImpl<$Res> - extends _$PlaylistCopyWithImpl<$Res, _$_Playlist> - implements _$$_PlaylistCopyWith<$Res> { - __$$_PlaylistCopyWithImpl( - _$_Playlist _value, $Res Function(_$_Playlist) _then) +class __$$PlaylistImplCopyWithImpl<$Res> + extends _$PlaylistCopyWithImpl<$Res, _$PlaylistImpl> + implements _$$PlaylistImplCopyWith<$Res> { + __$$PlaylistImplCopyWithImpl( + _$PlaylistImpl _value, $Res Function(_$PlaylistImpl) _then) : super(_value, _then); @pragma('vm:prefer-inline') @@ -1057,7 +1064,7 @@ class __$$_PlaylistCopyWithImpl<$Res> Object? songCount = null, Object? created = null, }) { - return _then(_$_Playlist( + return _then(_$PlaylistImpl( sourceId: null == sourceId ? _value.sourceId : sourceId // ignore: cast_nullable_to_non_nullable @@ -1092,8 +1099,8 @@ class __$$_PlaylistCopyWithImpl<$Res> /// @nodoc -class _$_Playlist with DiagnosticableTreeMixin implements _Playlist { - const _$_Playlist( +class _$PlaylistImpl with DiagnosticableTreeMixin implements _Playlist { + const _$PlaylistImpl( {required this.sourceId, required this.id, required this.name, @@ -1137,10 +1144,10 @@ class _$_Playlist with DiagnosticableTreeMixin implements _Playlist { } @override - bool operator ==(dynamic other) { + bool operator ==(Object other) { return identical(this, other) || (other.runtimeType == runtimeType && - other is _$_Playlist && + other is _$PlaylistImpl && (identical(other.sourceId, sourceId) || other.sourceId == sourceId) && (identical(other.id, id) || other.id == id) && @@ -1160,8 +1167,8 @@ class _$_Playlist with DiagnosticableTreeMixin implements _Playlist { @JsonKey(ignore: true) @override @pragma('vm:prefer-inline') - _$$_PlaylistCopyWith<_$_Playlist> get copyWith => - __$$_PlaylistCopyWithImpl<_$_Playlist>(this, _$identity); + _$$PlaylistImplCopyWith<_$PlaylistImpl> get copyWith => + __$$PlaylistImplCopyWithImpl<_$PlaylistImpl>(this, _$identity); } abstract class _Playlist implements Playlist { @@ -1172,7 +1179,7 @@ abstract class _Playlist implements Playlist { final String? comment, final String? coverArt, required final int songCount, - required final DateTime created}) = _$_Playlist; + required final DateTime created}) = _$PlaylistImpl; @override int get sourceId; @@ -1190,7 +1197,7 @@ abstract class _Playlist implements Playlist { DateTime get created; @override @JsonKey(ignore: true) - _$$_PlaylistCopyWith<_$_Playlist> get copyWith => + _$$PlaylistImplCopyWith<_$PlaylistImpl> get copyWith => throw _privateConstructorUsedError; } @@ -1334,9 +1341,10 @@ class _$SongCopyWithImpl<$Res, $Val extends Song> } /// @nodoc -abstract class _$$_SongCopyWith<$Res> implements $SongCopyWith<$Res> { - factory _$$_SongCopyWith(_$_Song value, $Res Function(_$_Song) then) = - __$$_SongCopyWithImpl<$Res>; +abstract class _$$SongImplCopyWith<$Res> implements $SongCopyWith<$Res> { + factory _$$SongImplCopyWith( + _$SongImpl value, $Res Function(_$SongImpl) then) = + __$$SongImplCopyWithImpl<$Res>; @override @useResult $Res call( @@ -1358,9 +1366,10 @@ abstract class _$$_SongCopyWith<$Res> implements $SongCopyWith<$Res> { } /// @nodoc -class __$$_SongCopyWithImpl<$Res> extends _$SongCopyWithImpl<$Res, _$_Song> - implements _$$_SongCopyWith<$Res> { - __$$_SongCopyWithImpl(_$_Song _value, $Res Function(_$_Song) _then) +class __$$SongImplCopyWithImpl<$Res> + extends _$SongCopyWithImpl<$Res, _$SongImpl> + implements _$$SongImplCopyWith<$Res> { + __$$SongImplCopyWithImpl(_$SongImpl _value, $Res Function(_$SongImpl) _then) : super(_value, _then); @pragma('vm:prefer-inline') @@ -1382,7 +1391,7 @@ class __$$_SongCopyWithImpl<$Res> extends _$SongCopyWithImpl<$Res, _$_Song> Object? downloadFilePath = freezed, Object? isDeleted = null, }) { - return _then(_$_Song( + return _then(_$SongImpl( sourceId: null == sourceId ? _value.sourceId : sourceId // ignore: cast_nullable_to_non_nullable @@ -1449,8 +1458,8 @@ class __$$_SongCopyWithImpl<$Res> extends _$SongCopyWithImpl<$Res, _$_Song> /// @nodoc -class _$_Song with DiagnosticableTreeMixin implements _Song { - const _$_Song( +class _$SongImpl with DiagnosticableTreeMixin implements _Song { + const _$SongImpl( {required this.sourceId, required this.id, this.albumId, @@ -1527,10 +1536,10 @@ class _$_Song with DiagnosticableTreeMixin implements _Song { } @override - bool operator ==(dynamic other) { + bool operator ==(Object other) { return identical(this, other) || (other.runtimeType == runtimeType && - other is _$_Song && + other is _$SongImpl && (identical(other.sourceId, sourceId) || other.sourceId == sourceId) && (identical(other.id, id) || other.id == id) && @@ -1576,8 +1585,8 @@ class _$_Song with DiagnosticableTreeMixin implements _Song { @JsonKey(ignore: true) @override @pragma('vm:prefer-inline') - _$$_SongCopyWith<_$_Song> get copyWith => - __$$_SongCopyWithImpl<_$_Song>(this, _$identity); + _$$SongImplCopyWith<_$SongImpl> get copyWith => + __$$SongImplCopyWithImpl<_$SongImpl>(this, _$identity); } abstract class _Song implements Song { @@ -1596,7 +1605,7 @@ abstract class _Song implements Song { final String? genre, final String? downloadTaskId, final String? downloadFilePath, - final bool isDeleted}) = _$_Song; + final bool isDeleted}) = _$SongImpl; @override int get sourceId; @@ -1630,7 +1639,8 @@ abstract class _Song implements Song { bool get isDeleted; @override @JsonKey(ignore: true) - _$$_SongCopyWith<_$_Song> get copyWith => throw _privateConstructorUsedError; + _$$SongImplCopyWith<_$SongImpl> get copyWith => + throw _privateConstructorUsedError; } /// @nodoc @@ -1698,11 +1708,11 @@ class _$SearchResultsCopyWithImpl<$Res, $Val extends SearchResults> } /// @nodoc -abstract class _$$_SearchResultsCopyWith<$Res> +abstract class _$$SearchResultsImplCopyWith<$Res> implements $SearchResultsCopyWith<$Res> { - factory _$$_SearchResultsCopyWith( - _$_SearchResults value, $Res Function(_$_SearchResults) then) = - __$$_SearchResultsCopyWithImpl<$Res>; + factory _$$SearchResultsImplCopyWith( + _$SearchResultsImpl value, $Res Function(_$SearchResultsImpl) then) = + __$$SearchResultsImplCopyWithImpl<$Res>; @override @useResult $Res call( @@ -1713,11 +1723,11 @@ abstract class _$$_SearchResultsCopyWith<$Res> } /// @nodoc -class __$$_SearchResultsCopyWithImpl<$Res> - extends _$SearchResultsCopyWithImpl<$Res, _$_SearchResults> - implements _$$_SearchResultsCopyWith<$Res> { - __$$_SearchResultsCopyWithImpl( - _$_SearchResults _value, $Res Function(_$_SearchResults) _then) +class __$$SearchResultsImplCopyWithImpl<$Res> + extends _$SearchResultsCopyWithImpl<$Res, _$SearchResultsImpl> + implements _$$SearchResultsImplCopyWith<$Res> { + __$$SearchResultsImplCopyWithImpl( + _$SearchResultsImpl _value, $Res Function(_$SearchResultsImpl) _then) : super(_value, _then); @pragma('vm:prefer-inline') @@ -1728,7 +1738,7 @@ class __$$_SearchResultsCopyWithImpl<$Res> Object? albums = null, Object? artists = null, }) { - return _then(_$_SearchResults( + return _then(_$SearchResultsImpl( query: freezed == query ? _value.query : query // ignore: cast_nullable_to_non_nullable @@ -1751,8 +1761,10 @@ class __$$_SearchResultsCopyWithImpl<$Res> /// @nodoc -class _$_SearchResults with DiagnosticableTreeMixin implements _SearchResults { - const _$_SearchResults( +class _$SearchResultsImpl + with DiagnosticableTreeMixin + implements _SearchResults { + const _$SearchResultsImpl( {this.query, this.songs = const IListConst([]), this.albums = const IListConst([]), @@ -1787,10 +1799,10 @@ class _$_SearchResults with DiagnosticableTreeMixin implements _SearchResults { } @override - bool operator ==(dynamic other) { + bool operator ==(Object other) { return identical(this, other) || (other.runtimeType == runtimeType && - other is _$_SearchResults && + other is _$SearchResultsImpl && (identical(other.query, query) || other.query == query) && const DeepCollectionEquality().equals(other.songs, songs) && const DeepCollectionEquality().equals(other.albums, albums) && @@ -1808,8 +1820,8 @@ class _$_SearchResults with DiagnosticableTreeMixin implements _SearchResults { @JsonKey(ignore: true) @override @pragma('vm:prefer-inline') - _$$_SearchResultsCopyWith<_$_SearchResults> get copyWith => - __$$_SearchResultsCopyWithImpl<_$_SearchResults>(this, _$identity); + _$$SearchResultsImplCopyWith<_$SearchResultsImpl> get copyWith => + __$$SearchResultsImplCopyWithImpl<_$SearchResultsImpl>(this, _$identity); } abstract class _SearchResults implements SearchResults { @@ -1817,7 +1829,7 @@ abstract class _SearchResults implements SearchResults { {final String? query, final IList songs, final IList albums, - final IList artists}) = _$_SearchResults; + final IList artists}) = _$SearchResultsImpl; @override String? get query; @@ -1829,6 +1841,6 @@ abstract class _SearchResults implements SearchResults { IList get artists; @override @JsonKey(ignore: true) - _$$_SearchResultsCopyWith<_$_SearchResults> get copyWith => + _$$SearchResultsImplCopyWith<_$SearchResultsImpl> get copyWith => throw _privateConstructorUsedError; } diff --git a/lib/models/query.freezed.dart b/lib/models/query.freezed.dart index 5700e4b..12b51c9 100644 --- a/lib/models/query.freezed.dart +++ b/lib/models/query.freezed.dart @@ -12,7 +12,7 @@ part of 'query.dart'; T _$identity(T value) => value; final _privateConstructorUsedError = UnsupportedError( - 'It seems like you constructed your class using `MyClass._()`. This constructor is only meant to be used by freezed and you are not supposed to need it nor use it.\nPlease check the documentation here for more information: https://github.com/rrousselGit/freezed#custom-getters-and-methods'); + 'It seems like you constructed your class using `MyClass._()`. This constructor is only meant to be used by freezed and you are not supposed to need it nor use it.\nPlease check the documentation here for more information: https://github.com/rrousselGit/freezed#adding-getters-and-methods-to-our-models'); Pagination _$PaginationFromJson(Map json) { return _Pagination.fromJson(json); @@ -68,22 +68,22 @@ class _$PaginationCopyWithImpl<$Res, $Val extends Pagination> } /// @nodoc -abstract class _$$_PaginationCopyWith<$Res> +abstract class _$$PaginationImplCopyWith<$Res> implements $PaginationCopyWith<$Res> { - factory _$$_PaginationCopyWith( - _$_Pagination value, $Res Function(_$_Pagination) then) = - __$$_PaginationCopyWithImpl<$Res>; + factory _$$PaginationImplCopyWith( + _$PaginationImpl value, $Res Function(_$PaginationImpl) then) = + __$$PaginationImplCopyWithImpl<$Res>; @override @useResult $Res call({int limit, int offset}); } /// @nodoc -class __$$_PaginationCopyWithImpl<$Res> - extends _$PaginationCopyWithImpl<$Res, _$_Pagination> - implements _$$_PaginationCopyWith<$Res> { - __$$_PaginationCopyWithImpl( - _$_Pagination _value, $Res Function(_$_Pagination) _then) +class __$$PaginationImplCopyWithImpl<$Res> + extends _$PaginationCopyWithImpl<$Res, _$PaginationImpl> + implements _$$PaginationImplCopyWith<$Res> { + __$$PaginationImplCopyWithImpl( + _$PaginationImpl _value, $Res Function(_$PaginationImpl) _then) : super(_value, _then); @pragma('vm:prefer-inline') @@ -92,7 +92,7 @@ class __$$_PaginationCopyWithImpl<$Res> Object? limit = null, Object? offset = null, }) { - return _then(_$_Pagination( + return _then(_$PaginationImpl( limit: null == limit ? _value.limit : limit // ignore: cast_nullable_to_non_nullable @@ -107,11 +107,11 @@ class __$$_PaginationCopyWithImpl<$Res> /// @nodoc @JsonSerializable() -class _$_Pagination implements _Pagination { - const _$_Pagination({required this.limit, this.offset = 0}); +class _$PaginationImpl implements _Pagination { + const _$PaginationImpl({required this.limit, this.offset = 0}); - factory _$_Pagination.fromJson(Map json) => - _$$_PaginationFromJson(json); + factory _$PaginationImpl.fromJson(Map json) => + _$$PaginationImplFromJson(json); @override final int limit; @@ -125,10 +125,10 @@ class _$_Pagination implements _Pagination { } @override - bool operator ==(dynamic other) { + bool operator ==(Object other) { return identical(this, other) || (other.runtimeType == runtimeType && - other is _$_Pagination && + other is _$PaginationImpl && (identical(other.limit, limit) || other.limit == limit) && (identical(other.offset, offset) || other.offset == offset)); } @@ -140,12 +140,12 @@ class _$_Pagination implements _Pagination { @JsonKey(ignore: true) @override @pragma('vm:prefer-inline') - _$$_PaginationCopyWith<_$_Pagination> get copyWith => - __$$_PaginationCopyWithImpl<_$_Pagination>(this, _$identity); + _$$PaginationImplCopyWith<_$PaginationImpl> get copyWith => + __$$PaginationImplCopyWithImpl<_$PaginationImpl>(this, _$identity); @override Map toJson() { - return _$$_PaginationToJson( + return _$$PaginationImplToJson( this, ); } @@ -153,10 +153,10 @@ class _$_Pagination implements _Pagination { abstract class _Pagination implements Pagination { const factory _Pagination({required final int limit, final int offset}) = - _$_Pagination; + _$PaginationImpl; factory _Pagination.fromJson(Map json) = - _$_Pagination.fromJson; + _$PaginationImpl.fromJson; @override int get limit; @@ -164,7 +164,7 @@ abstract class _Pagination implements Pagination { int get offset; @override @JsonKey(ignore: true) - _$$_PaginationCopyWith<_$_Pagination> get copyWith => + _$$PaginationImplCopyWith<_$PaginationImpl> get copyWith => throw _privateConstructorUsedError; } @@ -220,19 +220,21 @@ class _$SortByCopyWithImpl<$Res, $Val extends SortBy> } /// @nodoc -abstract class _$$_SortByCopyWith<$Res> implements $SortByCopyWith<$Res> { - factory _$$_SortByCopyWith(_$_SortBy value, $Res Function(_$_SortBy) then) = - __$$_SortByCopyWithImpl<$Res>; +abstract class _$$SortByImplCopyWith<$Res> implements $SortByCopyWith<$Res> { + factory _$$SortByImplCopyWith( + _$SortByImpl value, $Res Function(_$SortByImpl) then) = + __$$SortByImplCopyWithImpl<$Res>; @override @useResult $Res call({String column, SortDirection dir}); } /// @nodoc -class __$$_SortByCopyWithImpl<$Res> - extends _$SortByCopyWithImpl<$Res, _$_SortBy> - implements _$$_SortByCopyWith<$Res> { - __$$_SortByCopyWithImpl(_$_SortBy _value, $Res Function(_$_SortBy) _then) +class __$$SortByImplCopyWithImpl<$Res> + extends _$SortByCopyWithImpl<$Res, _$SortByImpl> + implements _$$SortByImplCopyWith<$Res> { + __$$SortByImplCopyWithImpl( + _$SortByImpl _value, $Res Function(_$SortByImpl) _then) : super(_value, _then); @pragma('vm:prefer-inline') @@ -241,7 +243,7 @@ class __$$_SortByCopyWithImpl<$Res> Object? column = null, Object? dir = null, }) { - return _then(_$_SortBy( + return _then(_$SortByImpl( column: null == column ? _value.column : column // ignore: cast_nullable_to_non_nullable @@ -256,11 +258,11 @@ class __$$_SortByCopyWithImpl<$Res> /// @nodoc @JsonSerializable() -class _$_SortBy implements _SortBy { - const _$_SortBy({required this.column, this.dir = SortDirection.asc}); +class _$SortByImpl implements _SortBy { + const _$SortByImpl({required this.column, this.dir = SortDirection.asc}); - factory _$_SortBy.fromJson(Map json) => - _$$_SortByFromJson(json); + factory _$SortByImpl.fromJson(Map json) => + _$$SortByImplFromJson(json); @override final String column; @@ -274,10 +276,10 @@ class _$_SortBy implements _SortBy { } @override - bool operator ==(dynamic other) { + bool operator ==(Object other) { return identical(this, other) || (other.runtimeType == runtimeType && - other is _$_SortBy && + other is _$SortByImpl && (identical(other.column, column) || other.column == column) && (identical(other.dir, dir) || other.dir == dir)); } @@ -289,12 +291,12 @@ class _$_SortBy implements _SortBy { @JsonKey(ignore: true) @override @pragma('vm:prefer-inline') - _$$_SortByCopyWith<_$_SortBy> get copyWith => - __$$_SortByCopyWithImpl<_$_SortBy>(this, _$identity); + _$$SortByImplCopyWith<_$SortByImpl> get copyWith => + __$$SortByImplCopyWithImpl<_$SortByImpl>(this, _$identity); @override Map toJson() { - return _$$_SortByToJson( + return _$$SortByImplToJson( this, ); } @@ -302,9 +304,9 @@ class _$_SortBy implements _SortBy { abstract class _SortBy implements SortBy { const factory _SortBy( - {required final String column, final SortDirection dir}) = _$_SortBy; + {required final String column, final SortDirection dir}) = _$SortByImpl; - factory _SortBy.fromJson(Map json) = _$_SortBy.fromJson; + factory _SortBy.fromJson(Map json) = _$SortByImpl.fromJson; @override String get column; @@ -312,7 +314,7 @@ abstract class _SortBy implements SortBy { SortDirection get dir; @override @JsonKey(ignore: true) - _$$_SortByCopyWith<_$_SortBy> get copyWith => + _$$SortByImplCopyWith<_$SortByImpl> get copyWith => throw _privateConstructorUsedError; } @@ -436,22 +438,22 @@ class _$FilterWithCopyWithImpl<$Res, $Val extends FilterWith> } /// @nodoc -abstract class _$$_FilterWithEqualsCopyWith<$Res> +abstract class _$$FilterWithEqualsImplCopyWith<$Res> implements $FilterWithCopyWith<$Res> { - factory _$$_FilterWithEqualsCopyWith( - _$_FilterWithEquals value, $Res Function(_$_FilterWithEquals) then) = - __$$_FilterWithEqualsCopyWithImpl<$Res>; + factory _$$FilterWithEqualsImplCopyWith(_$FilterWithEqualsImpl value, + $Res Function(_$FilterWithEqualsImpl) then) = + __$$FilterWithEqualsImplCopyWithImpl<$Res>; @override @useResult $Res call({String column, String value, bool invert}); } /// @nodoc -class __$$_FilterWithEqualsCopyWithImpl<$Res> - extends _$FilterWithCopyWithImpl<$Res, _$_FilterWithEquals> - implements _$$_FilterWithEqualsCopyWith<$Res> { - __$$_FilterWithEqualsCopyWithImpl( - _$_FilterWithEquals _value, $Res Function(_$_FilterWithEquals) _then) +class __$$FilterWithEqualsImplCopyWithImpl<$Res> + extends _$FilterWithCopyWithImpl<$Res, _$FilterWithEqualsImpl> + implements _$$FilterWithEqualsImplCopyWith<$Res> { + __$$FilterWithEqualsImplCopyWithImpl(_$FilterWithEqualsImpl _value, + $Res Function(_$FilterWithEqualsImpl) _then) : super(_value, _then); @pragma('vm:prefer-inline') @@ -461,7 +463,7 @@ class __$$_FilterWithEqualsCopyWithImpl<$Res> Object? value = null, Object? invert = null, }) { - return _then(_$_FilterWithEquals( + return _then(_$FilterWithEqualsImpl( column: null == column ? _value.column : column // ignore: cast_nullable_to_non_nullable @@ -480,16 +482,16 @@ class __$$_FilterWithEqualsCopyWithImpl<$Res> /// @nodoc @JsonSerializable() -class _$_FilterWithEquals implements _FilterWithEquals { - const _$_FilterWithEquals( +class _$FilterWithEqualsImpl implements _FilterWithEquals { + const _$FilterWithEqualsImpl( {required this.column, required this.value, this.invert = false, final String? $type}) : $type = $type ?? 'equals'; - factory _$_FilterWithEquals.fromJson(Map json) => - _$$_FilterWithEqualsFromJson(json); + factory _$FilterWithEqualsImpl.fromJson(Map json) => + _$$FilterWithEqualsImplFromJson(json); @override final String column; @@ -508,10 +510,10 @@ class _$_FilterWithEquals implements _FilterWithEquals { } @override - bool operator ==(dynamic other) { + bool operator ==(Object other) { return identical(this, other) || (other.runtimeType == runtimeType && - other is _$_FilterWithEquals && + other is _$FilterWithEqualsImpl && (identical(other.column, column) || other.column == column) && (identical(other.value, value) || other.value == value) && (identical(other.invert, invert) || other.invert == invert)); @@ -524,8 +526,9 @@ class _$_FilterWithEquals implements _FilterWithEquals { @JsonKey(ignore: true) @override @pragma('vm:prefer-inline') - _$$_FilterWithEqualsCopyWith<_$_FilterWithEquals> get copyWith => - __$$_FilterWithEqualsCopyWithImpl<_$_FilterWithEquals>(this, _$identity); + _$$FilterWithEqualsImplCopyWith<_$FilterWithEqualsImpl> get copyWith => + __$$FilterWithEqualsImplCopyWithImpl<_$FilterWithEqualsImpl>( + this, _$identity); @override @optionalTypeArgs @@ -611,7 +614,7 @@ class _$_FilterWithEquals implements _FilterWithEquals { @override Map toJson() { - return _$$_FilterWithEqualsToJson( + return _$$FilterWithEqualsImplToJson( this, ); } @@ -621,10 +624,10 @@ abstract class _FilterWithEquals implements FilterWith { const factory _FilterWithEquals( {required final String column, required final String value, - final bool invert}) = _$_FilterWithEquals; + final bool invert}) = _$FilterWithEqualsImpl; factory _FilterWithEquals.fromJson(Map json) = - _$_FilterWithEquals.fromJson; + _$FilterWithEqualsImpl.fromJson; @override String get column; @@ -632,27 +635,28 @@ abstract class _FilterWithEquals implements FilterWith { bool get invert; @override @JsonKey(ignore: true) - _$$_FilterWithEqualsCopyWith<_$_FilterWithEquals> get copyWith => + _$$FilterWithEqualsImplCopyWith<_$FilterWithEqualsImpl> get copyWith => throw _privateConstructorUsedError; } /// @nodoc -abstract class _$$_FilterWithGreaterThanCopyWith<$Res> +abstract class _$$FilterWithGreaterThanImplCopyWith<$Res> implements $FilterWithCopyWith<$Res> { - factory _$$_FilterWithGreaterThanCopyWith(_$_FilterWithGreaterThan value, - $Res Function(_$_FilterWithGreaterThan) then) = - __$$_FilterWithGreaterThanCopyWithImpl<$Res>; + factory _$$FilterWithGreaterThanImplCopyWith( + _$FilterWithGreaterThanImpl value, + $Res Function(_$FilterWithGreaterThanImpl) then) = + __$$FilterWithGreaterThanImplCopyWithImpl<$Res>; @override @useResult $Res call({String column, String value, bool orEquals}); } /// @nodoc -class __$$_FilterWithGreaterThanCopyWithImpl<$Res> - extends _$FilterWithCopyWithImpl<$Res, _$_FilterWithGreaterThan> - implements _$$_FilterWithGreaterThanCopyWith<$Res> { - __$$_FilterWithGreaterThanCopyWithImpl(_$_FilterWithGreaterThan _value, - $Res Function(_$_FilterWithGreaterThan) _then) +class __$$FilterWithGreaterThanImplCopyWithImpl<$Res> + extends _$FilterWithCopyWithImpl<$Res, _$FilterWithGreaterThanImpl> + implements _$$FilterWithGreaterThanImplCopyWith<$Res> { + __$$FilterWithGreaterThanImplCopyWithImpl(_$FilterWithGreaterThanImpl _value, + $Res Function(_$FilterWithGreaterThanImpl) _then) : super(_value, _then); @pragma('vm:prefer-inline') @@ -662,7 +666,7 @@ class __$$_FilterWithGreaterThanCopyWithImpl<$Res> Object? value = null, Object? orEquals = null, }) { - return _then(_$_FilterWithGreaterThan( + return _then(_$FilterWithGreaterThanImpl( column: null == column ? _value.column : column // ignore: cast_nullable_to_non_nullable @@ -681,16 +685,16 @@ class __$$_FilterWithGreaterThanCopyWithImpl<$Res> /// @nodoc @JsonSerializable() -class _$_FilterWithGreaterThan implements _FilterWithGreaterThan { - const _$_FilterWithGreaterThan( +class _$FilterWithGreaterThanImpl implements _FilterWithGreaterThan { + const _$FilterWithGreaterThanImpl( {required this.column, required this.value, this.orEquals = false, final String? $type}) : $type = $type ?? 'greaterThan'; - factory _$_FilterWithGreaterThan.fromJson(Map json) => - _$$_FilterWithGreaterThanFromJson(json); + factory _$FilterWithGreaterThanImpl.fromJson(Map json) => + _$$FilterWithGreaterThanImplFromJson(json); @override final String column; @@ -709,10 +713,10 @@ class _$_FilterWithGreaterThan implements _FilterWithGreaterThan { } @override - bool operator ==(dynamic other) { + bool operator ==(Object other) { return identical(this, other) || (other.runtimeType == runtimeType && - other is _$_FilterWithGreaterThan && + other is _$FilterWithGreaterThanImpl && (identical(other.column, column) || other.column == column) && (identical(other.value, value) || other.value == value) && (identical(other.orEquals, orEquals) || @@ -726,9 +730,9 @@ class _$_FilterWithGreaterThan implements _FilterWithGreaterThan { @JsonKey(ignore: true) @override @pragma('vm:prefer-inline') - _$$_FilterWithGreaterThanCopyWith<_$_FilterWithGreaterThan> get copyWith => - __$$_FilterWithGreaterThanCopyWithImpl<_$_FilterWithGreaterThan>( - this, _$identity); + _$$FilterWithGreaterThanImplCopyWith<_$FilterWithGreaterThanImpl> + get copyWith => __$$FilterWithGreaterThanImplCopyWithImpl< + _$FilterWithGreaterThanImpl>(this, _$identity); @override @optionalTypeArgs @@ -814,7 +818,7 @@ class _$_FilterWithGreaterThan implements _FilterWithGreaterThan { @override Map toJson() { - return _$$_FilterWithGreaterThanToJson( + return _$$FilterWithGreaterThanImplToJson( this, ); } @@ -824,10 +828,10 @@ abstract class _FilterWithGreaterThan implements FilterWith { const factory _FilterWithGreaterThan( {required final String column, required final String value, - final bool orEquals}) = _$_FilterWithGreaterThan; + final bool orEquals}) = _$FilterWithGreaterThanImpl; factory _FilterWithGreaterThan.fromJson(Map json) = - _$_FilterWithGreaterThan.fromJson; + _$FilterWithGreaterThanImpl.fromJson; @override String get column; @@ -835,27 +839,27 @@ abstract class _FilterWithGreaterThan implements FilterWith { bool get orEquals; @override @JsonKey(ignore: true) - _$$_FilterWithGreaterThanCopyWith<_$_FilterWithGreaterThan> get copyWith => - throw _privateConstructorUsedError; + _$$FilterWithGreaterThanImplCopyWith<_$FilterWithGreaterThanImpl> + get copyWith => throw _privateConstructorUsedError; } /// @nodoc -abstract class _$$_FilterWithIsNullCopyWith<$Res> +abstract class _$$FilterWithIsNullImplCopyWith<$Res> implements $FilterWithCopyWith<$Res> { - factory _$$_FilterWithIsNullCopyWith( - _$_FilterWithIsNull value, $Res Function(_$_FilterWithIsNull) then) = - __$$_FilterWithIsNullCopyWithImpl<$Res>; + factory _$$FilterWithIsNullImplCopyWith(_$FilterWithIsNullImpl value, + $Res Function(_$FilterWithIsNullImpl) then) = + __$$FilterWithIsNullImplCopyWithImpl<$Res>; @override @useResult $Res call({String column, bool invert}); } /// @nodoc -class __$$_FilterWithIsNullCopyWithImpl<$Res> - extends _$FilterWithCopyWithImpl<$Res, _$_FilterWithIsNull> - implements _$$_FilterWithIsNullCopyWith<$Res> { - __$$_FilterWithIsNullCopyWithImpl( - _$_FilterWithIsNull _value, $Res Function(_$_FilterWithIsNull) _then) +class __$$FilterWithIsNullImplCopyWithImpl<$Res> + extends _$FilterWithCopyWithImpl<$Res, _$FilterWithIsNullImpl> + implements _$$FilterWithIsNullImplCopyWith<$Res> { + __$$FilterWithIsNullImplCopyWithImpl(_$FilterWithIsNullImpl _value, + $Res Function(_$FilterWithIsNullImpl) _then) : super(_value, _then); @pragma('vm:prefer-inline') @@ -864,7 +868,7 @@ class __$$_FilterWithIsNullCopyWithImpl<$Res> Object? column = null, Object? invert = null, }) { - return _then(_$_FilterWithIsNull( + return _then(_$FilterWithIsNullImpl( column: null == column ? _value.column : column // ignore: cast_nullable_to_non_nullable @@ -879,13 +883,13 @@ class __$$_FilterWithIsNullCopyWithImpl<$Res> /// @nodoc @JsonSerializable() -class _$_FilterWithIsNull implements _FilterWithIsNull { - const _$_FilterWithIsNull( +class _$FilterWithIsNullImpl implements _FilterWithIsNull { + const _$FilterWithIsNullImpl( {required this.column, this.invert = false, final String? $type}) : $type = $type ?? 'isNull'; - factory _$_FilterWithIsNull.fromJson(Map json) => - _$$_FilterWithIsNullFromJson(json); + factory _$FilterWithIsNullImpl.fromJson(Map json) => + _$$FilterWithIsNullImplFromJson(json); @override final String column; @@ -902,10 +906,10 @@ class _$_FilterWithIsNull implements _FilterWithIsNull { } @override - bool operator ==(dynamic other) { + bool operator ==(Object other) { return identical(this, other) || (other.runtimeType == runtimeType && - other is _$_FilterWithIsNull && + other is _$FilterWithIsNullImpl && (identical(other.column, column) || other.column == column) && (identical(other.invert, invert) || other.invert == invert)); } @@ -917,8 +921,9 @@ class _$_FilterWithIsNull implements _FilterWithIsNull { @JsonKey(ignore: true) @override @pragma('vm:prefer-inline') - _$$_FilterWithIsNullCopyWith<_$_FilterWithIsNull> get copyWith => - __$$_FilterWithIsNullCopyWithImpl<_$_FilterWithIsNull>(this, _$identity); + _$$FilterWithIsNullImplCopyWith<_$FilterWithIsNullImpl> get copyWith => + __$$FilterWithIsNullImplCopyWithImpl<_$FilterWithIsNullImpl>( + this, _$identity); @override @optionalTypeArgs @@ -1004,7 +1009,7 @@ class _$_FilterWithIsNull implements _FilterWithIsNull { @override Map toJson() { - return _$$_FilterWithIsNullToJson( + return _$$FilterWithIsNullImplToJson( this, ); } @@ -1012,37 +1017,38 @@ class _$_FilterWithIsNull implements _FilterWithIsNull { abstract class _FilterWithIsNull implements FilterWith { const factory _FilterWithIsNull( - {required final String column, final bool invert}) = _$_FilterWithIsNull; + {required final String column, + final bool invert}) = _$FilterWithIsNullImpl; factory _FilterWithIsNull.fromJson(Map json) = - _$_FilterWithIsNull.fromJson; + _$FilterWithIsNullImpl.fromJson; @override String get column; bool get invert; @override @JsonKey(ignore: true) - _$$_FilterWithIsNullCopyWith<_$_FilterWithIsNull> get copyWith => + _$$FilterWithIsNullImplCopyWith<_$FilterWithIsNullImpl> get copyWith => throw _privateConstructorUsedError; } /// @nodoc -abstract class _$$_FilterWithBetweenIntCopyWith<$Res> +abstract class _$$FilterWithBetweenIntImplCopyWith<$Res> implements $FilterWithCopyWith<$Res> { - factory _$$_FilterWithBetweenIntCopyWith(_$_FilterWithBetweenInt value, - $Res Function(_$_FilterWithBetweenInt) then) = - __$$_FilterWithBetweenIntCopyWithImpl<$Res>; + factory _$$FilterWithBetweenIntImplCopyWith(_$FilterWithBetweenIntImpl value, + $Res Function(_$FilterWithBetweenIntImpl) then) = + __$$FilterWithBetweenIntImplCopyWithImpl<$Res>; @override @useResult $Res call({String column, int from, int to}); } /// @nodoc -class __$$_FilterWithBetweenIntCopyWithImpl<$Res> - extends _$FilterWithCopyWithImpl<$Res, _$_FilterWithBetweenInt> - implements _$$_FilterWithBetweenIntCopyWith<$Res> { - __$$_FilterWithBetweenIntCopyWithImpl(_$_FilterWithBetweenInt _value, - $Res Function(_$_FilterWithBetweenInt) _then) +class __$$FilterWithBetweenIntImplCopyWithImpl<$Res> + extends _$FilterWithCopyWithImpl<$Res, _$FilterWithBetweenIntImpl> + implements _$$FilterWithBetweenIntImplCopyWith<$Res> { + __$$FilterWithBetweenIntImplCopyWithImpl(_$FilterWithBetweenIntImpl _value, + $Res Function(_$FilterWithBetweenIntImpl) _then) : super(_value, _then); @pragma('vm:prefer-inline') @@ -1052,7 +1058,7 @@ class __$$_FilterWithBetweenIntCopyWithImpl<$Res> Object? from = null, Object? to = null, }) { - return _then(_$_FilterWithBetweenInt( + return _then(_$FilterWithBetweenIntImpl( column: null == column ? _value.column : column // ignore: cast_nullable_to_non_nullable @@ -1071,16 +1077,16 @@ class __$$_FilterWithBetweenIntCopyWithImpl<$Res> /// @nodoc @JsonSerializable() -class _$_FilterWithBetweenInt implements _FilterWithBetweenInt { - const _$_FilterWithBetweenInt( +class _$FilterWithBetweenIntImpl implements _FilterWithBetweenInt { + const _$FilterWithBetweenIntImpl( {required this.column, required this.from, required this.to, final String? $type}) : $type = $type ?? 'betweenInt'; - factory _$_FilterWithBetweenInt.fromJson(Map json) => - _$$_FilterWithBetweenIntFromJson(json); + factory _$FilterWithBetweenIntImpl.fromJson(Map json) => + _$$FilterWithBetweenIntImplFromJson(json); @override final String column; @@ -1098,10 +1104,10 @@ class _$_FilterWithBetweenInt implements _FilterWithBetweenInt { } @override - bool operator ==(dynamic other) { + bool operator ==(Object other) { return identical(this, other) || (other.runtimeType == runtimeType && - other is _$_FilterWithBetweenInt && + other is _$FilterWithBetweenIntImpl && (identical(other.column, column) || other.column == column) && (identical(other.from, from) || other.from == from) && (identical(other.to, to) || other.to == to)); @@ -1114,9 +1120,10 @@ class _$_FilterWithBetweenInt implements _FilterWithBetweenInt { @JsonKey(ignore: true) @override @pragma('vm:prefer-inline') - _$$_FilterWithBetweenIntCopyWith<_$_FilterWithBetweenInt> get copyWith => - __$$_FilterWithBetweenIntCopyWithImpl<_$_FilterWithBetweenInt>( - this, _$identity); + _$$FilterWithBetweenIntImplCopyWith<_$FilterWithBetweenIntImpl> + get copyWith => + __$$FilterWithBetweenIntImplCopyWithImpl<_$FilterWithBetweenIntImpl>( + this, _$identity); @override @optionalTypeArgs @@ -1202,7 +1209,7 @@ class _$_FilterWithBetweenInt implements _FilterWithBetweenInt { @override Map toJson() { - return _$$_FilterWithBetweenIntToJson( + return _$$FilterWithBetweenIntImplToJson( this, ); } @@ -1212,10 +1219,10 @@ abstract class _FilterWithBetweenInt implements FilterWith { const factory _FilterWithBetweenInt( {required final String column, required final int from, - required final int to}) = _$_FilterWithBetweenInt; + required final int to}) = _$FilterWithBetweenIntImpl; factory _FilterWithBetweenInt.fromJson(Map json) = - _$_FilterWithBetweenInt.fromJson; + _$FilterWithBetweenIntImpl.fromJson; @override String get column; @@ -1223,27 +1230,27 @@ abstract class _FilterWithBetweenInt implements FilterWith { int get to; @override @JsonKey(ignore: true) - _$$_FilterWithBetweenIntCopyWith<_$_FilterWithBetweenInt> get copyWith => - throw _privateConstructorUsedError; + _$$FilterWithBetweenIntImplCopyWith<_$FilterWithBetweenIntImpl> + get copyWith => throw _privateConstructorUsedError; } /// @nodoc -abstract class _$$_FilterWithIsInCopyWith<$Res> +abstract class _$$FilterWithIsInImplCopyWith<$Res> implements $FilterWithCopyWith<$Res> { - factory _$$_FilterWithIsInCopyWith( - _$_FilterWithIsIn value, $Res Function(_$_FilterWithIsIn) then) = - __$$_FilterWithIsInCopyWithImpl<$Res>; + factory _$$FilterWithIsInImplCopyWith(_$FilterWithIsInImpl value, + $Res Function(_$FilterWithIsInImpl) then) = + __$$FilterWithIsInImplCopyWithImpl<$Res>; @override @useResult $Res call({String column, bool invert, IList values}); } /// @nodoc -class __$$_FilterWithIsInCopyWithImpl<$Res> - extends _$FilterWithCopyWithImpl<$Res, _$_FilterWithIsIn> - implements _$$_FilterWithIsInCopyWith<$Res> { - __$$_FilterWithIsInCopyWithImpl( - _$_FilterWithIsIn _value, $Res Function(_$_FilterWithIsIn) _then) +class __$$FilterWithIsInImplCopyWithImpl<$Res> + extends _$FilterWithCopyWithImpl<$Res, _$FilterWithIsInImpl> + implements _$$FilterWithIsInImplCopyWith<$Res> { + __$$FilterWithIsInImplCopyWithImpl( + _$FilterWithIsInImpl _value, $Res Function(_$FilterWithIsInImpl) _then) : super(_value, _then); @pragma('vm:prefer-inline') @@ -1253,7 +1260,7 @@ class __$$_FilterWithIsInCopyWithImpl<$Res> Object? invert = null, Object? values = null, }) { - return _then(_$_FilterWithIsIn( + return _then(_$FilterWithIsInImpl( column: null == column ? _value.column : column // ignore: cast_nullable_to_non_nullable @@ -1272,16 +1279,16 @@ class __$$_FilterWithIsInCopyWithImpl<$Res> /// @nodoc @JsonSerializable() -class _$_FilterWithIsIn implements _FilterWithIsIn { - const _$_FilterWithIsIn( +class _$FilterWithIsInImpl implements _FilterWithIsIn { + const _$FilterWithIsInImpl( {required this.column, this.invert = false, this.values = const IListConst([]), final String? $type}) : $type = $type ?? 'isIn'; - factory _$_FilterWithIsIn.fromJson(Map json) => - _$$_FilterWithIsInFromJson(json); + factory _$FilterWithIsInImpl.fromJson(Map json) => + _$$FilterWithIsInImplFromJson(json); @override final String column; @@ -1301,10 +1308,10 @@ class _$_FilterWithIsIn implements _FilterWithIsIn { } @override - bool operator ==(dynamic other) { + bool operator ==(Object other) { return identical(this, other) || (other.runtimeType == runtimeType && - other is _$_FilterWithIsIn && + other is _$FilterWithIsInImpl && (identical(other.column, column) || other.column == column) && (identical(other.invert, invert) || other.invert == invert) && const DeepCollectionEquality().equals(other.values, values)); @@ -1318,8 +1325,9 @@ class _$_FilterWithIsIn implements _FilterWithIsIn { @JsonKey(ignore: true) @override @pragma('vm:prefer-inline') - _$$_FilterWithIsInCopyWith<_$_FilterWithIsIn> get copyWith => - __$$_FilterWithIsInCopyWithImpl<_$_FilterWithIsIn>(this, _$identity); + _$$FilterWithIsInImplCopyWith<_$FilterWithIsInImpl> get copyWith => + __$$FilterWithIsInImplCopyWithImpl<_$FilterWithIsInImpl>( + this, _$identity); @override @optionalTypeArgs @@ -1405,7 +1413,7 @@ class _$_FilterWithIsIn implements _FilterWithIsIn { @override Map toJson() { - return _$$_FilterWithIsInToJson( + return _$$FilterWithIsInImplToJson( this, ); } @@ -1415,10 +1423,10 @@ abstract class _FilterWithIsIn implements FilterWith { const factory _FilterWithIsIn( {required final String column, final bool invert, - final IList values}) = _$_FilterWithIsIn; + final IList values}) = _$FilterWithIsInImpl; factory _FilterWithIsIn.fromJson(Map json) = - _$_FilterWithIsIn.fromJson; + _$FilterWithIsInImpl.fromJson; @override String get column; @@ -1426,7 +1434,7 @@ abstract class _FilterWithIsIn implements FilterWith { IList get values; @override @JsonKey(ignore: true) - _$$_FilterWithIsInCopyWith<_$_FilterWithIsIn> get copyWith => + _$$FilterWithIsInImplCopyWith<_$FilterWithIsInImpl> get copyWith => throw _privateConstructorUsedError; } @@ -1512,10 +1520,11 @@ class _$ListQueryCopyWithImpl<$Res, $Val extends ListQuery> } /// @nodoc -abstract class _$$_ListQueryCopyWith<$Res> implements $ListQueryCopyWith<$Res> { - factory _$$_ListQueryCopyWith( - _$_ListQuery value, $Res Function(_$_ListQuery) then) = - __$$_ListQueryCopyWithImpl<$Res>; +abstract class _$$ListQueryImplCopyWith<$Res> + implements $ListQueryCopyWith<$Res> { + factory _$$ListQueryImplCopyWith( + _$ListQueryImpl value, $Res Function(_$ListQueryImpl) then) = + __$$ListQueryImplCopyWithImpl<$Res>; @override @useResult $Res call({Pagination page, SortBy? sort, IList filters}); @@ -1527,11 +1536,11 @@ abstract class _$$_ListQueryCopyWith<$Res> implements $ListQueryCopyWith<$Res> { } /// @nodoc -class __$$_ListQueryCopyWithImpl<$Res> - extends _$ListQueryCopyWithImpl<$Res, _$_ListQuery> - implements _$$_ListQueryCopyWith<$Res> { - __$$_ListQueryCopyWithImpl( - _$_ListQuery _value, $Res Function(_$_ListQuery) _then) +class __$$ListQueryImplCopyWithImpl<$Res> + extends _$ListQueryCopyWithImpl<$Res, _$ListQueryImpl> + implements _$$ListQueryImplCopyWith<$Res> { + __$$ListQueryImplCopyWithImpl( + _$ListQueryImpl _value, $Res Function(_$ListQueryImpl) _then) : super(_value, _then); @pragma('vm:prefer-inline') @@ -1541,7 +1550,7 @@ class __$$_ListQueryCopyWithImpl<$Res> Object? sort = freezed, Object? filters = null, }) { - return _then(_$_ListQuery( + return _then(_$ListQueryImpl( page: null == page ? _value.page : page // ignore: cast_nullable_to_non_nullable @@ -1560,14 +1569,14 @@ class __$$_ListQueryCopyWithImpl<$Res> /// @nodoc @JsonSerializable() -class _$_ListQuery implements _ListQuery { - const _$_ListQuery( +class _$ListQueryImpl implements _ListQuery { + const _$ListQueryImpl( {this.page = const Pagination(limit: -1, offset: 0), this.sort, this.filters = const IListConst([])}); - factory _$_ListQuery.fromJson(Map json) => - _$$_ListQueryFromJson(json); + factory _$ListQueryImpl.fromJson(Map json) => + _$$ListQueryImplFromJson(json); @override @JsonKey() @@ -1584,10 +1593,10 @@ class _$_ListQuery implements _ListQuery { } @override - bool operator ==(dynamic other) { + bool operator ==(Object other) { return identical(this, other) || (other.runtimeType == runtimeType && - other is _$_ListQuery && + other is _$ListQueryImpl && (identical(other.page, page) || other.page == page) && (identical(other.sort, sort) || other.sort == sort) && const DeepCollectionEquality().equals(other.filters, filters)); @@ -1601,12 +1610,12 @@ class _$_ListQuery implements _ListQuery { @JsonKey(ignore: true) @override @pragma('vm:prefer-inline') - _$$_ListQueryCopyWith<_$_ListQuery> get copyWith => - __$$_ListQueryCopyWithImpl<_$_ListQuery>(this, _$identity); + _$$ListQueryImplCopyWith<_$ListQueryImpl> get copyWith => + __$$ListQueryImplCopyWithImpl<_$ListQueryImpl>(this, _$identity); @override Map toJson() { - return _$$_ListQueryToJson( + return _$$ListQueryImplToJson( this, ); } @@ -1616,10 +1625,10 @@ abstract class _ListQuery implements ListQuery { const factory _ListQuery( {final Pagination page, final SortBy? sort, - final IList filters}) = _$_ListQuery; + final IList filters}) = _$ListQueryImpl; factory _ListQuery.fromJson(Map json) = - _$_ListQuery.fromJson; + _$ListQueryImpl.fromJson; @override Pagination get page; @@ -1629,7 +1638,7 @@ abstract class _ListQuery implements ListQuery { IList get filters; @override @JsonKey(ignore: true) - _$$_ListQueryCopyWith<_$_ListQuery> get copyWith => + _$$ListQueryImplCopyWith<_$ListQueryImpl> get copyWith => throw _privateConstructorUsedError; } @@ -1682,22 +1691,22 @@ class _$ListQueryOptionsCopyWithImpl<$Res, $Val extends ListQueryOptions> } /// @nodoc -abstract class _$$_ListQueryOptionsCopyWith<$Res> +abstract class _$$ListQueryOptionsImplCopyWith<$Res> implements $ListQueryOptionsCopyWith<$Res> { - factory _$$_ListQueryOptionsCopyWith( - _$_ListQueryOptions value, $Res Function(_$_ListQueryOptions) then) = - __$$_ListQueryOptionsCopyWithImpl<$Res>; + factory _$$ListQueryOptionsImplCopyWith(_$ListQueryOptionsImpl value, + $Res Function(_$ListQueryOptionsImpl) then) = + __$$ListQueryOptionsImplCopyWithImpl<$Res>; @override @useResult $Res call({IList sortColumns, IList filterColumns}); } /// @nodoc -class __$$_ListQueryOptionsCopyWithImpl<$Res> - extends _$ListQueryOptionsCopyWithImpl<$Res, _$_ListQueryOptions> - implements _$$_ListQueryOptionsCopyWith<$Res> { - __$$_ListQueryOptionsCopyWithImpl( - _$_ListQueryOptions _value, $Res Function(_$_ListQueryOptions) _then) +class __$$ListQueryOptionsImplCopyWithImpl<$Res> + extends _$ListQueryOptionsCopyWithImpl<$Res, _$ListQueryOptionsImpl> + implements _$$ListQueryOptionsImplCopyWith<$Res> { + __$$ListQueryOptionsImplCopyWithImpl(_$ListQueryOptionsImpl _value, + $Res Function(_$ListQueryOptionsImpl) _then) : super(_value, _then); @pragma('vm:prefer-inline') @@ -1706,7 +1715,7 @@ class __$$_ListQueryOptionsCopyWithImpl<$Res> Object? sortColumns = null, Object? filterColumns = null, }) { - return _then(_$_ListQueryOptions( + return _then(_$ListQueryOptionsImpl( sortColumns: null == sortColumns ? _value.sortColumns : sortColumns // ignore: cast_nullable_to_non_nullable @@ -1721,8 +1730,8 @@ class __$$_ListQueryOptionsCopyWithImpl<$Res> /// @nodoc -class _$_ListQueryOptions implements _ListQueryOptions { - const _$_ListQueryOptions( +class _$ListQueryOptionsImpl implements _ListQueryOptions { + const _$ListQueryOptionsImpl( {required this.sortColumns, required this.filterColumns}); @override @@ -1736,10 +1745,10 @@ class _$_ListQueryOptions implements _ListQueryOptions { } @override - bool operator ==(dynamic other) { + bool operator ==(Object other) { return identical(this, other) || (other.runtimeType == runtimeType && - other is _$_ListQueryOptions && + other is _$ListQueryOptionsImpl && const DeepCollectionEquality() .equals(other.sortColumns, sortColumns) && const DeepCollectionEquality() @@ -1755,14 +1764,15 @@ class _$_ListQueryOptions implements _ListQueryOptions { @JsonKey(ignore: true) @override @pragma('vm:prefer-inline') - _$$_ListQueryOptionsCopyWith<_$_ListQueryOptions> get copyWith => - __$$_ListQueryOptionsCopyWithImpl<_$_ListQueryOptions>(this, _$identity); + _$$ListQueryOptionsImplCopyWith<_$ListQueryOptionsImpl> get copyWith => + __$$ListQueryOptionsImplCopyWithImpl<_$ListQueryOptionsImpl>( + this, _$identity); } abstract class _ListQueryOptions implements ListQueryOptions { const factory _ListQueryOptions( {required final IList sortColumns, - required final IList filterColumns}) = _$_ListQueryOptions; + required final IList filterColumns}) = _$ListQueryOptionsImpl; @override IList get sortColumns; @@ -1770,7 +1780,7 @@ abstract class _ListQueryOptions implements ListQueryOptions { IList get filterColumns; @override @JsonKey(ignore: true) - _$$_ListQueryOptionsCopyWith<_$_ListQueryOptions> get copyWith => + _$$ListQueryOptionsImplCopyWith<_$ListQueryOptionsImpl> get copyWith => throw _privateConstructorUsedError; } @@ -1842,11 +1852,11 @@ class _$LibraryListQueryCopyWithImpl<$Res, $Val extends LibraryListQuery> } /// @nodoc -abstract class _$$_LibraryListQueryCopyWith<$Res> +abstract class _$$LibraryListQueryImplCopyWith<$Res> implements $LibraryListQueryCopyWith<$Res> { - factory _$$_LibraryListQueryCopyWith( - _$_LibraryListQuery value, $Res Function(_$_LibraryListQuery) then) = - __$$_LibraryListQueryCopyWithImpl<$Res>; + factory _$$LibraryListQueryImplCopyWith(_$LibraryListQueryImpl value, + $Res Function(_$LibraryListQueryImpl) then) = + __$$LibraryListQueryImplCopyWithImpl<$Res>; @override @useResult $Res call({ListQueryOptions options, ListQuery query}); @@ -1858,11 +1868,11 @@ abstract class _$$_LibraryListQueryCopyWith<$Res> } /// @nodoc -class __$$_LibraryListQueryCopyWithImpl<$Res> - extends _$LibraryListQueryCopyWithImpl<$Res, _$_LibraryListQuery> - implements _$$_LibraryListQueryCopyWith<$Res> { - __$$_LibraryListQueryCopyWithImpl( - _$_LibraryListQuery _value, $Res Function(_$_LibraryListQuery) _then) +class __$$LibraryListQueryImplCopyWithImpl<$Res> + extends _$LibraryListQueryCopyWithImpl<$Res, _$LibraryListQueryImpl> + implements _$$LibraryListQueryImplCopyWith<$Res> { + __$$LibraryListQueryImplCopyWithImpl(_$LibraryListQueryImpl _value, + $Res Function(_$LibraryListQueryImpl) _then) : super(_value, _then); @pragma('vm:prefer-inline') @@ -1871,7 +1881,7 @@ class __$$_LibraryListQueryCopyWithImpl<$Res> Object? options = null, Object? query = null, }) { - return _then(_$_LibraryListQuery( + return _then(_$LibraryListQueryImpl( options: null == options ? _value.options : options // ignore: cast_nullable_to_non_nullable @@ -1886,8 +1896,8 @@ class __$$_LibraryListQueryCopyWithImpl<$Res> /// @nodoc -class _$_LibraryListQuery implements _LibraryListQuery { - const _$_LibraryListQuery({required this.options, required this.query}); +class _$LibraryListQueryImpl implements _LibraryListQuery { + const _$LibraryListQueryImpl({required this.options, required this.query}); @override final ListQueryOptions options; @@ -1900,10 +1910,10 @@ class _$_LibraryListQuery implements _LibraryListQuery { } @override - bool operator ==(dynamic other) { + bool operator ==(Object other) { return identical(this, other) || (other.runtimeType == runtimeType && - other is _$_LibraryListQuery && + other is _$LibraryListQueryImpl && (identical(other.options, options) || other.options == options) && (identical(other.query, query) || other.query == query)); } @@ -1914,14 +1924,15 @@ class _$_LibraryListQuery implements _LibraryListQuery { @JsonKey(ignore: true) @override @pragma('vm:prefer-inline') - _$$_LibraryListQueryCopyWith<_$_LibraryListQuery> get copyWith => - __$$_LibraryListQueryCopyWithImpl<_$_LibraryListQuery>(this, _$identity); + _$$LibraryListQueryImplCopyWith<_$LibraryListQueryImpl> get copyWith => + __$$LibraryListQueryImplCopyWithImpl<_$LibraryListQueryImpl>( + this, _$identity); } abstract class _LibraryListQuery implements LibraryListQuery { const factory _LibraryListQuery( {required final ListQueryOptions options, - required final ListQuery query}) = _$_LibraryListQuery; + required final ListQuery query}) = _$LibraryListQueryImpl; @override ListQueryOptions get options; @@ -1929,6 +1940,6 @@ abstract class _LibraryListQuery implements LibraryListQuery { ListQuery get query; @override @JsonKey(ignore: true) - _$$_LibraryListQueryCopyWith<_$_LibraryListQuery> get copyWith => + _$$LibraryListQueryImplCopyWith<_$LibraryListQueryImpl> get copyWith => throw _privateConstructorUsedError; } diff --git a/lib/models/query.g.dart b/lib/models/query.g.dart index 1eed329..1aca521 100644 --- a/lib/models/query.g.dart +++ b/lib/models/query.g.dart @@ -6,25 +6,26 @@ part of 'query.dart'; // JsonSerializableGenerator // ************************************************************************** -_$_Pagination _$$_PaginationFromJson(Map json) => - _$_Pagination( - limit: json['limit'] as int, - offset: json['offset'] as int? ?? 0, +_$PaginationImpl _$$PaginationImplFromJson(Map json) => + _$PaginationImpl( + limit: (json['limit'] as num).toInt(), + offset: (json['offset'] as num?)?.toInt() ?? 0, ); -Map _$$_PaginationToJson(_$_Pagination instance) => +Map _$$PaginationImplToJson(_$PaginationImpl instance) => { 'limit': instance.limit, 'offset': instance.offset, }; -_$_SortBy _$$_SortByFromJson(Map json) => _$_SortBy( +_$SortByImpl _$$SortByImplFromJson(Map json) => _$SortByImpl( column: json['column'] as String, dir: $enumDecodeNullable(_$SortDirectionEnumMap, json['dir']) ?? SortDirection.asc, ); -Map _$$_SortByToJson(_$_SortBy instance) => { +Map _$$SortByImplToJson(_$SortByImpl instance) => + { 'column': instance.column, 'dir': _$SortDirectionEnumMap[instance.dir]!, }; @@ -34,15 +35,17 @@ const _$SortDirectionEnumMap = { SortDirection.desc: 'desc', }; -_$_FilterWithEquals _$$_FilterWithEqualsFromJson(Map json) => - _$_FilterWithEquals( +_$FilterWithEqualsImpl _$$FilterWithEqualsImplFromJson( + Map json) => + _$FilterWithEqualsImpl( column: json['column'] as String, value: json['value'] as String, invert: json['invert'] as bool? ?? false, $type: json['runtimeType'] as String?, ); -Map _$$_FilterWithEqualsToJson(_$_FilterWithEquals instance) => +Map _$$FilterWithEqualsImplToJson( + _$FilterWithEqualsImpl instance) => { 'column': instance.column, 'value': instance.value, @@ -50,17 +53,17 @@ Map _$$_FilterWithEqualsToJson(_$_FilterWithEquals instance) => 'runtimeType': instance.$type, }; -_$_FilterWithGreaterThan _$$_FilterWithGreaterThanFromJson( +_$FilterWithGreaterThanImpl _$$FilterWithGreaterThanImplFromJson( Map json) => - _$_FilterWithGreaterThan( + _$FilterWithGreaterThanImpl( column: json['column'] as String, value: json['value'] as String, orEquals: json['orEquals'] as bool? ?? false, $type: json['runtimeType'] as String?, ); -Map _$$_FilterWithGreaterThanToJson( - _$_FilterWithGreaterThan instance) => +Map _$$FilterWithGreaterThanImplToJson( + _$FilterWithGreaterThanImpl instance) => { 'column': instance.column, 'value': instance.value, @@ -68,31 +71,33 @@ Map _$$_FilterWithGreaterThanToJson( 'runtimeType': instance.$type, }; -_$_FilterWithIsNull _$$_FilterWithIsNullFromJson(Map json) => - _$_FilterWithIsNull( +_$FilterWithIsNullImpl _$$FilterWithIsNullImplFromJson( + Map json) => + _$FilterWithIsNullImpl( column: json['column'] as String, invert: json['invert'] as bool? ?? false, $type: json['runtimeType'] as String?, ); -Map _$$_FilterWithIsNullToJson(_$_FilterWithIsNull instance) => +Map _$$FilterWithIsNullImplToJson( + _$FilterWithIsNullImpl instance) => { 'column': instance.column, 'invert': instance.invert, 'runtimeType': instance.$type, }; -_$_FilterWithBetweenInt _$$_FilterWithBetweenIntFromJson( +_$FilterWithBetweenIntImpl _$$FilterWithBetweenIntImplFromJson( Map json) => - _$_FilterWithBetweenInt( + _$FilterWithBetweenIntImpl( column: json['column'] as String, - from: json['from'] as int, - to: json['to'] as int, + from: (json['from'] as num).toInt(), + to: (json['to'] as num).toInt(), $type: json['runtimeType'] as String?, ); -Map _$$_FilterWithBetweenIntToJson( - _$_FilterWithBetweenInt instance) => +Map _$$FilterWithBetweenIntImplToJson( + _$FilterWithBetweenIntImpl instance) => { 'column': instance.column, 'from': instance.from, @@ -100,8 +105,8 @@ Map _$$_FilterWithBetweenIntToJson( 'runtimeType': instance.$type, }; -_$_FilterWithIsIn _$$_FilterWithIsInFromJson(Map json) => - _$_FilterWithIsIn( +_$FilterWithIsInImpl _$$FilterWithIsInImplFromJson(Map json) => + _$FilterWithIsInImpl( column: json['column'] as String, invert: json['invert'] as bool? ?? false, values: json['values'] == null @@ -110,7 +115,8 @@ _$_FilterWithIsIn _$$_FilterWithIsInFromJson(Map json) => $type: json['runtimeType'] as String?, ); -Map _$$_FilterWithIsInToJson(_$_FilterWithIsIn instance) => +Map _$$FilterWithIsInImplToJson( + _$FilterWithIsInImpl instance) => { 'column': instance.column, 'invert': instance.invert, @@ -120,7 +126,8 @@ Map _$$_FilterWithIsInToJson(_$_FilterWithIsIn instance) => 'runtimeType': instance.$type, }; -_$_ListQuery _$$_ListQueryFromJson(Map json) => _$_ListQuery( +_$ListQueryImpl _$$ListQueryImplFromJson(Map json) => + _$ListQueryImpl( page: json['page'] == null ? const Pagination(limit: -1, offset: 0) : Pagination.fromJson(json['page'] as Map), @@ -133,7 +140,7 @@ _$_ListQuery _$$_ListQueryFromJson(Map json) => _$_ListQuery( (value) => FilterWith.fromJson(value as Map)), ); -Map _$$_ListQueryToJson(_$_ListQuery instance) => +Map _$$ListQueryImplToJson(_$ListQueryImpl instance) => { 'page': instance.page, 'sort': instance.sort, diff --git a/lib/models/settings.freezed.dart b/lib/models/settings.freezed.dart index 833cc1b..8a7355f 100644 --- a/lib/models/settings.freezed.dart +++ b/lib/models/settings.freezed.dart @@ -12,7 +12,7 @@ part of 'settings.dart'; T _$identity(T value) => value; final _privateConstructorUsedError = UnsupportedError( - 'It seems like you constructed your class using `MyClass._()`. This constructor is only meant to be used by freezed and you are not supposed to need it nor use it.\nPlease check the documentation here for more information: https://github.com/rrousselGit/freezed#custom-getters-and-methods'); + 'It seems like you constructed your class using `MyClass._()`. This constructor is only meant to be used by freezed and you are not supposed to need it nor use it.\nPlease check the documentation here for more information: https://github.com/rrousselGit/freezed#adding-getters-and-methods-to-our-models'); /// @nodoc mixin _$Settings { @@ -81,10 +81,11 @@ class _$SettingsCopyWithImpl<$Res, $Val extends Settings> } /// @nodoc -abstract class _$$_SettingsCopyWith<$Res> implements $SettingsCopyWith<$Res> { - factory _$$_SettingsCopyWith( - _$_Settings value, $Res Function(_$_Settings) then) = - __$$_SettingsCopyWithImpl<$Res>; +abstract class _$$SettingsImplCopyWith<$Res> + implements $SettingsCopyWith<$Res> { + factory _$$SettingsImplCopyWith( + _$SettingsImpl value, $Res Function(_$SettingsImpl) then) = + __$$SettingsImplCopyWithImpl<$Res>; @override @useResult $Res call( @@ -97,11 +98,11 @@ abstract class _$$_SettingsCopyWith<$Res> implements $SettingsCopyWith<$Res> { } /// @nodoc -class __$$_SettingsCopyWithImpl<$Res> - extends _$SettingsCopyWithImpl<$Res, _$_Settings> - implements _$$_SettingsCopyWith<$Res> { - __$$_SettingsCopyWithImpl( - _$_Settings _value, $Res Function(_$_Settings) _then) +class __$$SettingsImplCopyWithImpl<$Res> + extends _$SettingsCopyWithImpl<$Res, _$SettingsImpl> + implements _$$SettingsImplCopyWith<$Res> { + __$$SettingsImplCopyWithImpl( + _$SettingsImpl _value, $Res Function(_$SettingsImpl) _then) : super(_value, _then); @pragma('vm:prefer-inline') @@ -111,7 +112,7 @@ class __$$_SettingsCopyWithImpl<$Res> Object? activeSource = freezed, Object? app = null, }) { - return _then(_$_Settings( + return _then(_$SettingsImpl( sources: null == sources ? _value.sources : sources // ignore: cast_nullable_to_non_nullable @@ -130,8 +131,8 @@ class __$$_SettingsCopyWithImpl<$Res> /// @nodoc -class _$_Settings implements _Settings { - const _$_Settings( +class _$SettingsImpl implements _Settings { + const _$SettingsImpl( {this.sources = const IListConst([]), this.activeSource, this.app = const AppSettings()}); @@ -151,10 +152,10 @@ class _$_Settings implements _Settings { } @override - bool operator ==(dynamic other) { + bool operator ==(Object other) { return identical(this, other) || (other.runtimeType == runtimeType && - other is _$_Settings && + other is _$SettingsImpl && const DeepCollectionEquality().equals(other.sources, sources) && (identical(other.activeSource, activeSource) || other.activeSource == activeSource) && @@ -168,15 +169,15 @@ class _$_Settings implements _Settings { @JsonKey(ignore: true) @override @pragma('vm:prefer-inline') - _$$_SettingsCopyWith<_$_Settings> get copyWith => - __$$_SettingsCopyWithImpl<_$_Settings>(this, _$identity); + _$$SettingsImplCopyWith<_$SettingsImpl> get copyWith => + __$$SettingsImplCopyWithImpl<_$SettingsImpl>(this, _$identity); } abstract class _Settings implements Settings { const factory _Settings( {final IList sources, final SourceSettings? activeSource, - final AppSettings app}) = _$_Settings; + final AppSettings app}) = _$SettingsImpl; @override IList get sources; @@ -186,7 +187,7 @@ abstract class _Settings implements Settings { AppSettings get app; @override @JsonKey(ignore: true) - _$$_SettingsCopyWith<_$_Settings> get copyWith => + _$$SettingsImplCopyWith<_$SettingsImpl> get copyWith => throw _privateConstructorUsedError; } @@ -245,22 +246,22 @@ class _$AppSettingsCopyWithImpl<$Res, $Val extends AppSettings> } /// @nodoc -abstract class _$$_AppSettingsCopyWith<$Res> +abstract class _$$AppSettingsImplCopyWith<$Res> implements $AppSettingsCopyWith<$Res> { - factory _$$_AppSettingsCopyWith( - _$_AppSettings value, $Res Function(_$_AppSettings) then) = - __$$_AppSettingsCopyWithImpl<$Res>; + factory _$$AppSettingsImplCopyWith( + _$AppSettingsImpl value, $Res Function(_$AppSettingsImpl) then) = + __$$AppSettingsImplCopyWithImpl<$Res>; @override @useResult $Res call({int maxBitrateWifi, int maxBitrateMobile, String? streamFormat}); } /// @nodoc -class __$$_AppSettingsCopyWithImpl<$Res> - extends _$AppSettingsCopyWithImpl<$Res, _$_AppSettings> - implements _$$_AppSettingsCopyWith<$Res> { - __$$_AppSettingsCopyWithImpl( - _$_AppSettings _value, $Res Function(_$_AppSettings) _then) +class __$$AppSettingsImplCopyWithImpl<$Res> + extends _$AppSettingsCopyWithImpl<$Res, _$AppSettingsImpl> + implements _$$AppSettingsImplCopyWith<$Res> { + __$$AppSettingsImplCopyWithImpl( + _$AppSettingsImpl _value, $Res Function(_$AppSettingsImpl) _then) : super(_value, _then); @pragma('vm:prefer-inline') @@ -270,7 +271,7 @@ class __$$_AppSettingsCopyWithImpl<$Res> Object? maxBitrateMobile = null, Object? streamFormat = freezed, }) { - return _then(_$_AppSettings( + return _then(_$AppSettingsImpl( maxBitrateWifi: null == maxBitrateWifi ? _value.maxBitrateWifi : maxBitrateWifi // ignore: cast_nullable_to_non_nullable @@ -289,8 +290,8 @@ class __$$_AppSettingsCopyWithImpl<$Res> /// @nodoc -class _$_AppSettings extends _AppSettings { - const _$_AppSettings( +class _$AppSettingsImpl extends _AppSettings { + const _$AppSettingsImpl( {this.maxBitrateWifi = 0, this.maxBitrateMobile = 192, this.streamFormat = 'mp3'}) @@ -312,10 +313,10 @@ class _$_AppSettings extends _AppSettings { } @override - bool operator ==(dynamic other) { + bool operator ==(Object other) { return identical(this, other) || (other.runtimeType == runtimeType && - other is _$_AppSettings && + other is _$AppSettingsImpl && (identical(other.maxBitrateWifi, maxBitrateWifi) || other.maxBitrateWifi == maxBitrateWifi) && (identical(other.maxBitrateMobile, maxBitrateMobile) || @@ -331,15 +332,15 @@ class _$_AppSettings extends _AppSettings { @JsonKey(ignore: true) @override @pragma('vm:prefer-inline') - _$$_AppSettingsCopyWith<_$_AppSettings> get copyWith => - __$$_AppSettingsCopyWithImpl<_$_AppSettings>(this, _$identity); + _$$AppSettingsImplCopyWith<_$AppSettingsImpl> get copyWith => + __$$AppSettingsImplCopyWithImpl<_$AppSettingsImpl>(this, _$identity); } abstract class _AppSettings extends AppSettings { const factory _AppSettings( {final int maxBitrateWifi, final int maxBitrateMobile, - final String? streamFormat}) = _$_AppSettings; + final String? streamFormat}) = _$AppSettingsImpl; const _AppSettings._() : super._(); @override @@ -350,7 +351,7 @@ abstract class _AppSettings extends AppSettings { String? get streamFormat; @override @JsonKey(ignore: true) - _$$_AppSettingsCopyWith<_$_AppSettings> get copyWith => + _$$AppSettingsImplCopyWith<_$AppSettingsImpl> get copyWith => throw _privateConstructorUsedError; } @@ -454,11 +455,11 @@ class _$SubsonicSettingsCopyWithImpl<$Res, $Val extends SubsonicSettings> } /// @nodoc -abstract class _$$_SubsonicSettingsCopyWith<$Res> +abstract class _$$SubsonicSettingsImplCopyWith<$Res> implements $SubsonicSettingsCopyWith<$Res> { - factory _$$_SubsonicSettingsCopyWith( - _$_SubsonicSettings value, $Res Function(_$_SubsonicSettings) then) = - __$$_SubsonicSettingsCopyWithImpl<$Res>; + factory _$$SubsonicSettingsImplCopyWith(_$SubsonicSettingsImpl value, + $Res Function(_$SubsonicSettingsImpl) then) = + __$$SubsonicSettingsImplCopyWithImpl<$Res>; @override @useResult $Res call( @@ -474,11 +475,11 @@ abstract class _$$_SubsonicSettingsCopyWith<$Res> } /// @nodoc -class __$$_SubsonicSettingsCopyWithImpl<$Res> - extends _$SubsonicSettingsCopyWithImpl<$Res, _$_SubsonicSettings> - implements _$$_SubsonicSettingsCopyWith<$Res> { - __$$_SubsonicSettingsCopyWithImpl( - _$_SubsonicSettings _value, $Res Function(_$_SubsonicSettings) _then) +class __$$SubsonicSettingsImplCopyWithImpl<$Res> + extends _$SubsonicSettingsCopyWithImpl<$Res, _$SubsonicSettingsImpl> + implements _$$SubsonicSettingsImplCopyWith<$Res> { + __$$SubsonicSettingsImplCopyWithImpl(_$SubsonicSettingsImpl _value, + $Res Function(_$SubsonicSettingsImpl) _then) : super(_value, _then); @pragma('vm:prefer-inline') @@ -494,7 +495,7 @@ class __$$_SubsonicSettingsCopyWithImpl<$Res> Object? password = null, Object? useTokenAuth = null, }) { - return _then(_$_SubsonicSettings( + return _then(_$SubsonicSettingsImpl( id: null == id ? _value.id : id // ignore: cast_nullable_to_non_nullable @@ -537,8 +538,8 @@ class __$$_SubsonicSettingsCopyWithImpl<$Res> /// @nodoc -class _$_SubsonicSettings extends _SubsonicSettings { - const _$_SubsonicSettings( +class _$SubsonicSettingsImpl extends _SubsonicSettings { + const _$SubsonicSettingsImpl( {required this.id, this.features = const IListConst([]), required this.name, @@ -577,10 +578,10 @@ class _$_SubsonicSettings extends _SubsonicSettings { } @override - bool operator ==(dynamic other) { + bool operator ==(Object other) { return identical(this, other) || (other.runtimeType == runtimeType && - other is _$_SubsonicSettings && + other is _$SubsonicSettingsImpl && (identical(other.id, id) || other.id == id) && const DeepCollectionEquality().equals(other.features, features) && (identical(other.name, name) || other.name == name) && @@ -613,8 +614,9 @@ class _$_SubsonicSettings extends _SubsonicSettings { @JsonKey(ignore: true) @override @pragma('vm:prefer-inline') - _$$_SubsonicSettingsCopyWith<_$_SubsonicSettings> get copyWith => - __$$_SubsonicSettingsCopyWithImpl<_$_SubsonicSettings>(this, _$identity); + _$$SubsonicSettingsImplCopyWith<_$SubsonicSettingsImpl> get copyWith => + __$$SubsonicSettingsImplCopyWithImpl<_$SubsonicSettingsImpl>( + this, _$identity); } abstract class _SubsonicSettings extends SubsonicSettings { @@ -627,7 +629,7 @@ abstract class _SubsonicSettings extends SubsonicSettings { required final DateTime createdAt, required final String username, required final String password, - final bool useTokenAuth}) = _$_SubsonicSettings; + final bool useTokenAuth}) = _$SubsonicSettingsImpl; const _SubsonicSettings._() : super._(); @override @@ -650,7 +652,7 @@ abstract class _SubsonicSettings extends SubsonicSettings { bool get useTokenAuth; @override @JsonKey(ignore: true) - _$$_SubsonicSettingsCopyWith<_$_SubsonicSettings> get copyWith => + _$$SubsonicSettingsImplCopyWith<_$SubsonicSettingsImpl> get copyWith => throw _privateConstructorUsedError; } @@ -714,11 +716,12 @@ class _$SubsonicSourceSettingsCopyWithImpl<$Res, } /// @nodoc -abstract class _$$_SubsonicSourceSettingsCopyWith<$Res> +abstract class _$$SubsonicSourceSettingsImplCopyWith<$Res> implements $SubsonicSourceSettingsCopyWith<$Res> { - factory _$$_SubsonicSourceSettingsCopyWith(_$_SubsonicSourceSettings value, - $Res Function(_$_SubsonicSourceSettings) then) = - __$$_SubsonicSourceSettingsCopyWithImpl<$Res>; + factory _$$SubsonicSourceSettingsImplCopyWith( + _$SubsonicSourceSettingsImpl value, + $Res Function(_$SubsonicSourceSettingsImpl) then) = + __$$SubsonicSourceSettingsImplCopyWithImpl<$Res>; @override @useResult $Res call({SourceSettings source, SubsonicSettings subsonic}); @@ -728,12 +731,13 @@ abstract class _$$_SubsonicSourceSettingsCopyWith<$Res> } /// @nodoc -class __$$_SubsonicSourceSettingsCopyWithImpl<$Res> +class __$$SubsonicSourceSettingsImplCopyWithImpl<$Res> extends _$SubsonicSourceSettingsCopyWithImpl<$Res, - _$_SubsonicSourceSettings> - implements _$$_SubsonicSourceSettingsCopyWith<$Res> { - __$$_SubsonicSourceSettingsCopyWithImpl(_$_SubsonicSourceSettings _value, - $Res Function(_$_SubsonicSourceSettings) _then) + _$SubsonicSourceSettingsImpl> + implements _$$SubsonicSourceSettingsImplCopyWith<$Res> { + __$$SubsonicSourceSettingsImplCopyWithImpl( + _$SubsonicSourceSettingsImpl _value, + $Res Function(_$SubsonicSourceSettingsImpl) _then) : super(_value, _then); @pragma('vm:prefer-inline') @@ -742,7 +746,7 @@ class __$$_SubsonicSourceSettingsCopyWithImpl<$Res> Object? source = null, Object? subsonic = null, }) { - return _then(_$_SubsonicSourceSettings( + return _then(_$SubsonicSourceSettingsImpl( source: null == source ? _value.source : source // ignore: cast_nullable_to_non_nullable @@ -757,8 +761,8 @@ class __$$_SubsonicSourceSettingsCopyWithImpl<$Res> /// @nodoc -class _$_SubsonicSourceSettings extends _SubsonicSourceSettings { - const _$_SubsonicSourceSettings( +class _$SubsonicSourceSettingsImpl extends _SubsonicSourceSettings { + const _$SubsonicSourceSettingsImpl( {required this.source, required this.subsonic}) : super._(); @@ -773,10 +777,10 @@ class _$_SubsonicSourceSettings extends _SubsonicSourceSettings { } @override - bool operator ==(dynamic other) { + bool operator ==(Object other) { return identical(this, other) || (other.runtimeType == runtimeType && - other is _$_SubsonicSourceSettings && + other is _$SubsonicSourceSettingsImpl && (identical(other.source, source) || other.source == source) && (identical(other.subsonic, subsonic) || other.subsonic == subsonic)); @@ -788,15 +792,15 @@ class _$_SubsonicSourceSettings extends _SubsonicSourceSettings { @JsonKey(ignore: true) @override @pragma('vm:prefer-inline') - _$$_SubsonicSourceSettingsCopyWith<_$_SubsonicSourceSettings> get copyWith => - __$$_SubsonicSourceSettingsCopyWithImpl<_$_SubsonicSourceSettings>( - this, _$identity); + _$$SubsonicSourceSettingsImplCopyWith<_$SubsonicSourceSettingsImpl> + get copyWith => __$$SubsonicSourceSettingsImplCopyWithImpl< + _$SubsonicSourceSettingsImpl>(this, _$identity); } abstract class _SubsonicSourceSettings extends SubsonicSourceSettings { const factory _SubsonicSourceSettings( {required final SourceSettings source, - required final SubsonicSettings subsonic}) = _$_SubsonicSourceSettings; + required final SubsonicSettings subsonic}) = _$SubsonicSourceSettingsImpl; const _SubsonicSourceSettings._() : super._(); @override @@ -805,6 +809,6 @@ abstract class _SubsonicSourceSettings extends SubsonicSourceSettings { SubsonicSettings get subsonic; @override @JsonKey(ignore: true) - _$$_SubsonicSourceSettingsCopyWith<_$_SubsonicSourceSettings> get copyWith => - throw _privateConstructorUsedError; + _$$SubsonicSourceSettingsImplCopyWith<_$SubsonicSourceSettingsImpl> + get copyWith => throw _privateConstructorUsedError; } diff --git a/lib/models/support.freezed.dart b/lib/models/support.freezed.dart index 655aa66..742f5a3 100644 --- a/lib/models/support.freezed.dart +++ b/lib/models/support.freezed.dart @@ -12,7 +12,7 @@ part of 'support.dart'; T _$identity(T value) => value; final _privateConstructorUsedError = UnsupportedError( - 'It seems like you constructed your class using `MyClass._()`. This constructor is only meant to be used by freezed and you are not supposed to need it nor use it.\nPlease check the documentation here for more information: https://github.com/rrousselGit/freezed#custom-getters-and-methods'); + 'It seems like you constructed your class using `MyClass._()`. This constructor is only meant to be used by freezed and you are not supposed to need it nor use it.\nPlease check the documentation here for more information: https://github.com/rrousselGit/freezed#adding-getters-and-methods-to-our-models'); /// @nodoc mixin _$UriCacheInfo { @@ -69,22 +69,22 @@ class _$UriCacheInfoCopyWithImpl<$Res, $Val extends UriCacheInfo> } /// @nodoc -abstract class _$$_UriCacheInfoCopyWith<$Res> +abstract class _$$UriCacheInfoImplCopyWith<$Res> implements $UriCacheInfoCopyWith<$Res> { - factory _$$_UriCacheInfoCopyWith( - _$_UriCacheInfo value, $Res Function(_$_UriCacheInfo) then) = - __$$_UriCacheInfoCopyWithImpl<$Res>; + factory _$$UriCacheInfoImplCopyWith( + _$UriCacheInfoImpl value, $Res Function(_$UriCacheInfoImpl) then) = + __$$UriCacheInfoImplCopyWithImpl<$Res>; @override @useResult $Res call({Uri uri, String cacheKey, CacheManager cacheManager}); } /// @nodoc -class __$$_UriCacheInfoCopyWithImpl<$Res> - extends _$UriCacheInfoCopyWithImpl<$Res, _$_UriCacheInfo> - implements _$$_UriCacheInfoCopyWith<$Res> { - __$$_UriCacheInfoCopyWithImpl( - _$_UriCacheInfo _value, $Res Function(_$_UriCacheInfo) _then) +class __$$UriCacheInfoImplCopyWithImpl<$Res> + extends _$UriCacheInfoCopyWithImpl<$Res, _$UriCacheInfoImpl> + implements _$$UriCacheInfoImplCopyWith<$Res> { + __$$UriCacheInfoImplCopyWithImpl( + _$UriCacheInfoImpl _value, $Res Function(_$UriCacheInfoImpl) _then) : super(_value, _then); @pragma('vm:prefer-inline') @@ -94,7 +94,7 @@ class __$$_UriCacheInfoCopyWithImpl<$Res> Object? cacheKey = null, Object? cacheManager = null, }) { - return _then(_$_UriCacheInfo( + return _then(_$UriCacheInfoImpl( uri: null == uri ? _value.uri : uri // ignore: cast_nullable_to_non_nullable @@ -113,8 +113,8 @@ class __$$_UriCacheInfoCopyWithImpl<$Res> /// @nodoc -class _$_UriCacheInfo implements _UriCacheInfo { - const _$_UriCacheInfo( +class _$UriCacheInfoImpl implements _UriCacheInfo { + const _$UriCacheInfoImpl( {required this.uri, required this.cacheKey, required this.cacheManager}); @override @@ -130,10 +130,10 @@ class _$_UriCacheInfo implements _UriCacheInfo { } @override - bool operator ==(dynamic other) { + bool operator ==(Object other) { return identical(this, other) || (other.runtimeType == runtimeType && - other is _$_UriCacheInfo && + other is _$UriCacheInfoImpl && (identical(other.uri, uri) || other.uri == uri) && (identical(other.cacheKey, cacheKey) || other.cacheKey == cacheKey) && @@ -147,15 +147,15 @@ class _$_UriCacheInfo implements _UriCacheInfo { @JsonKey(ignore: true) @override @pragma('vm:prefer-inline') - _$$_UriCacheInfoCopyWith<_$_UriCacheInfo> get copyWith => - __$$_UriCacheInfoCopyWithImpl<_$_UriCacheInfo>(this, _$identity); + _$$UriCacheInfoImplCopyWith<_$UriCacheInfoImpl> get copyWith => + __$$UriCacheInfoImplCopyWithImpl<_$UriCacheInfoImpl>(this, _$identity); } abstract class _UriCacheInfo implements UriCacheInfo { const factory _UriCacheInfo( {required final Uri uri, required final String cacheKey, - required final CacheManager cacheManager}) = _$_UriCacheInfo; + required final CacheManager cacheManager}) = _$UriCacheInfoImpl; @override Uri get uri; @@ -165,7 +165,7 @@ abstract class _UriCacheInfo implements UriCacheInfo { CacheManager get cacheManager; @override @JsonKey(ignore: true) - _$$_UriCacheInfoCopyWith<_$_UriCacheInfo> get copyWith => + _$$UriCacheInfoImplCopyWith<_$UriCacheInfoImpl> get copyWith => throw _privateConstructorUsedError; } @@ -217,21 +217,22 @@ class _$CacheInfoCopyWithImpl<$Res, $Val extends CacheInfo> } /// @nodoc -abstract class _$$_CacheInfoCopyWith<$Res> implements $CacheInfoCopyWith<$Res> { - factory _$$_CacheInfoCopyWith( - _$_CacheInfo value, $Res Function(_$_CacheInfo) then) = - __$$_CacheInfoCopyWithImpl<$Res>; +abstract class _$$CacheInfoImplCopyWith<$Res> + implements $CacheInfoCopyWith<$Res> { + factory _$$CacheInfoImplCopyWith( + _$CacheInfoImpl value, $Res Function(_$CacheInfoImpl) then) = + __$$CacheInfoImplCopyWithImpl<$Res>; @override @useResult $Res call({String cacheKey, CacheManager cacheManager}); } /// @nodoc -class __$$_CacheInfoCopyWithImpl<$Res> - extends _$CacheInfoCopyWithImpl<$Res, _$_CacheInfo> - implements _$$_CacheInfoCopyWith<$Res> { - __$$_CacheInfoCopyWithImpl( - _$_CacheInfo _value, $Res Function(_$_CacheInfo) _then) +class __$$CacheInfoImplCopyWithImpl<$Res> + extends _$CacheInfoCopyWithImpl<$Res, _$CacheInfoImpl> + implements _$$CacheInfoImplCopyWith<$Res> { + __$$CacheInfoImplCopyWithImpl( + _$CacheInfoImpl _value, $Res Function(_$CacheInfoImpl) _then) : super(_value, _then); @pragma('vm:prefer-inline') @@ -240,7 +241,7 @@ class __$$_CacheInfoCopyWithImpl<$Res> Object? cacheKey = null, Object? cacheManager = null, }) { - return _then(_$_CacheInfo( + return _then(_$CacheInfoImpl( cacheKey: null == cacheKey ? _value.cacheKey : cacheKey // ignore: cast_nullable_to_non_nullable @@ -255,8 +256,8 @@ class __$$_CacheInfoCopyWithImpl<$Res> /// @nodoc -class _$_CacheInfo implements _CacheInfo { - const _$_CacheInfo({required this.cacheKey, required this.cacheManager}); +class _$CacheInfoImpl implements _CacheInfo { + const _$CacheInfoImpl({required this.cacheKey, required this.cacheManager}); @override final String cacheKey; @@ -269,10 +270,10 @@ class _$_CacheInfo implements _CacheInfo { } @override - bool operator ==(dynamic other) { + bool operator ==(Object other) { return identical(this, other) || (other.runtimeType == runtimeType && - other is _$_CacheInfo && + other is _$CacheInfoImpl && (identical(other.cacheKey, cacheKey) || other.cacheKey == cacheKey) && (identical(other.cacheManager, cacheManager) || @@ -285,14 +286,14 @@ class _$_CacheInfo implements _CacheInfo { @JsonKey(ignore: true) @override @pragma('vm:prefer-inline') - _$$_CacheInfoCopyWith<_$_CacheInfo> get copyWith => - __$$_CacheInfoCopyWithImpl<_$_CacheInfo>(this, _$identity); + _$$CacheInfoImplCopyWith<_$CacheInfoImpl> get copyWith => + __$$CacheInfoImplCopyWithImpl<_$CacheInfoImpl>(this, _$identity); } abstract class _CacheInfo implements CacheInfo { const factory _CacheInfo( {required final String cacheKey, - required final CacheManager cacheManager}) = _$_CacheInfo; + required final CacheManager cacheManager}) = _$CacheInfoImpl; @override String get cacheKey; @@ -300,7 +301,7 @@ abstract class _CacheInfo implements CacheInfo { CacheManager get cacheManager; @override @JsonKey(ignore: true) - _$$_CacheInfoCopyWith<_$_CacheInfo> get copyWith => + _$$CacheInfoImplCopyWith<_$CacheInfoImpl> get copyWith => throw _privateConstructorUsedError; } @@ -388,10 +389,10 @@ class _$PaletteCopyWithImpl<$Res, $Val extends Palette> } /// @nodoc -abstract class _$$_PaletteCopyWith<$Res> implements $PaletteCopyWith<$Res> { - factory _$$_PaletteCopyWith( - _$_Palette value, $Res Function(_$_Palette) then) = - __$$_PaletteCopyWithImpl<$Res>; +abstract class _$$PaletteImplCopyWith<$Res> implements $PaletteCopyWith<$Res> { + factory _$$PaletteImplCopyWith( + _$PaletteImpl value, $Res Function(_$PaletteImpl) then) = + __$$PaletteImplCopyWithImpl<$Res>; @override @useResult $Res call( @@ -405,10 +406,11 @@ abstract class _$$_PaletteCopyWith<$Res> implements $PaletteCopyWith<$Res> { } /// @nodoc -class __$$_PaletteCopyWithImpl<$Res> - extends _$PaletteCopyWithImpl<$Res, _$_Palette> - implements _$$_PaletteCopyWith<$Res> { - __$$_PaletteCopyWithImpl(_$_Palette _value, $Res Function(_$_Palette) _then) +class __$$PaletteImplCopyWithImpl<$Res> + extends _$PaletteCopyWithImpl<$Res, _$PaletteImpl> + implements _$$PaletteImplCopyWith<$Res> { + __$$PaletteImplCopyWithImpl( + _$PaletteImpl _value, $Res Function(_$PaletteImpl) _then) : super(_value, _then); @pragma('vm:prefer-inline') @@ -422,7 +424,7 @@ class __$$_PaletteCopyWithImpl<$Res> Object? lightMutedColor = freezed, Object? lightVibrantColor = freezed, }) { - return _then(_$_Palette( + return _then(_$PaletteImpl( vibrantColor: freezed == vibrantColor ? _value.vibrantColor : vibrantColor // ignore: cast_nullable_to_non_nullable @@ -457,8 +459,8 @@ class __$$_PaletteCopyWithImpl<$Res> /// @nodoc -class _$_Palette extends _Palette { - const _$_Palette( +class _$PaletteImpl extends _Palette { + const _$PaletteImpl( {this.vibrantColor, this.dominantColor, this.mutedColor, @@ -489,10 +491,10 @@ class _$_Palette extends _Palette { } @override - bool operator ==(dynamic other) { + bool operator ==(Object other) { return identical(this, other) || (other.runtimeType == runtimeType && - other is _$_Palette && + other is _$PaletteImpl && (identical(other.vibrantColor, vibrantColor) || other.vibrantColor == vibrantColor) && (identical(other.dominantColor, dominantColor) || @@ -523,8 +525,8 @@ class _$_Palette extends _Palette { @JsonKey(ignore: true) @override @pragma('vm:prefer-inline') - _$$_PaletteCopyWith<_$_Palette> get copyWith => - __$$_PaletteCopyWithImpl<_$_Palette>(this, _$identity); + _$$PaletteImplCopyWith<_$PaletteImpl> get copyWith => + __$$PaletteImplCopyWithImpl<_$PaletteImpl>(this, _$identity); } abstract class _Palette extends Palette { @@ -535,7 +537,7 @@ abstract class _Palette extends Palette { final PaletteColor? darkMutedColor, final PaletteColor? darkVibrantColor, final PaletteColor? lightMutedColor, - final PaletteColor? lightVibrantColor}) = _$_Palette; + final PaletteColor? lightVibrantColor}) = _$PaletteImpl; const _Palette._() : super._(); @override @@ -554,7 +556,7 @@ abstract class _Palette extends Palette { PaletteColor? get lightVibrantColor; @override @JsonKey(ignore: true) - _$$_PaletteCopyWith<_$_Palette> get copyWith => + _$$PaletteImplCopyWith<_$PaletteImpl> get copyWith => throw _privateConstructorUsedError; } @@ -637,11 +639,11 @@ class _$ColorThemeCopyWithImpl<$Res, $Val extends ColorTheme> } /// @nodoc -abstract class _$$_ColorThemeCopyWith<$Res> +abstract class _$$ColorThemeImplCopyWith<$Res> implements $ColorThemeCopyWith<$Res> { - factory _$$_ColorThemeCopyWith( - _$_ColorTheme value, $Res Function(_$_ColorTheme) then) = - __$$_ColorThemeCopyWithImpl<$Res>; + factory _$$ColorThemeImplCopyWith( + _$ColorThemeImpl value, $Res Function(_$ColorThemeImpl) then) = + __$$ColorThemeImplCopyWithImpl<$Res>; @override @useResult $Res call( @@ -654,11 +656,11 @@ abstract class _$$_ColorThemeCopyWith<$Res> } /// @nodoc -class __$$_ColorThemeCopyWithImpl<$Res> - extends _$ColorThemeCopyWithImpl<$Res, _$_ColorTheme> - implements _$$_ColorThemeCopyWith<$Res> { - __$$_ColorThemeCopyWithImpl( - _$_ColorTheme _value, $Res Function(_$_ColorTheme) _then) +class __$$ColorThemeImplCopyWithImpl<$Res> + extends _$ColorThemeCopyWithImpl<$Res, _$ColorThemeImpl> + implements _$$ColorThemeImplCopyWith<$Res> { + __$$ColorThemeImplCopyWithImpl( + _$ColorThemeImpl _value, $Res Function(_$ColorThemeImpl) _then) : super(_value, _then); @pragma('vm:prefer-inline') @@ -671,7 +673,7 @@ class __$$_ColorThemeCopyWithImpl<$Res> Object? darkerBackground = null, Object? onDarkerBackground = null, }) { - return _then(_$_ColorTheme( + return _then(_$ColorThemeImpl( theme: null == theme ? _value.theme : theme // ignore: cast_nullable_to_non_nullable @@ -702,8 +704,8 @@ class __$$_ColorThemeCopyWithImpl<$Res> /// @nodoc -class _$_ColorTheme implements _ColorTheme { - const _$_ColorTheme( +class _$ColorThemeImpl implements _ColorTheme { + const _$ColorThemeImpl( {required this.theme, required this.gradientHigh, required this.gradientLow, @@ -730,10 +732,10 @@ class _$_ColorTheme implements _ColorTheme { } @override - bool operator ==(dynamic other) { + bool operator ==(Object other) { return identical(this, other) || (other.runtimeType == runtimeType && - other is _$_ColorTheme && + other is _$ColorThemeImpl && (identical(other.theme, theme) || other.theme == theme) && (identical(other.gradientHigh, gradientHigh) || other.gradientHigh == gradientHigh) && @@ -754,8 +756,8 @@ class _$_ColorTheme implements _ColorTheme { @JsonKey(ignore: true) @override @pragma('vm:prefer-inline') - _$$_ColorThemeCopyWith<_$_ColorTheme> get copyWith => - __$$_ColorThemeCopyWithImpl<_$_ColorTheme>(this, _$identity); + _$$ColorThemeImplCopyWith<_$ColorThemeImpl> get copyWith => + __$$ColorThemeImplCopyWithImpl<_$ColorThemeImpl>(this, _$identity); } abstract class _ColorTheme implements ColorTheme { @@ -765,7 +767,7 @@ abstract class _ColorTheme implements ColorTheme { required final Color gradientLow, required final Color darkBackground, required final Color darkerBackground, - required final Color onDarkerBackground}) = _$_ColorTheme; + required final Color onDarkerBackground}) = _$ColorThemeImpl; @override ThemeData get theme; @@ -781,7 +783,7 @@ abstract class _ColorTheme implements ColorTheme { Color get onDarkerBackground; @override @JsonKey(ignore: true) - _$$_ColorThemeCopyWith<_$_ColorTheme> get copyWith => + _$$ColorThemeImplCopyWith<_$ColorThemeImpl> get copyWith => throw _privateConstructorUsedError; } @@ -855,11 +857,11 @@ class _$QueueItemStateCopyWithImpl<$Res, $Val extends QueueItemState> } /// @nodoc -abstract class _$$_QueueItemStateCopyWith<$Res> +abstract class _$$QueueItemStateImplCopyWith<$Res> implements $QueueItemStateCopyWith<$Res> { - factory _$$_QueueItemStateCopyWith( - _$_QueueItemState value, $Res Function(_$_QueueItemState) then) = - __$$_QueueItemStateCopyWithImpl<$Res>; + factory _$$QueueItemStateImplCopyWith(_$QueueItemStateImpl value, + $Res Function(_$QueueItemStateImpl) then) = + __$$QueueItemStateImplCopyWithImpl<$Res>; @override @useResult $Res call( @@ -870,11 +872,11 @@ abstract class _$$_QueueItemStateCopyWith<$Res> } /// @nodoc -class __$$_QueueItemStateCopyWithImpl<$Res> - extends _$QueueItemStateCopyWithImpl<$Res, _$_QueueItemState> - implements _$$_QueueItemStateCopyWith<$Res> { - __$$_QueueItemStateCopyWithImpl( - _$_QueueItemState _value, $Res Function(_$_QueueItemState) _then) +class __$$QueueItemStateImplCopyWithImpl<$Res> + extends _$QueueItemStateCopyWithImpl<$Res, _$QueueItemStateImpl> + implements _$$QueueItemStateImplCopyWith<$Res> { + __$$QueueItemStateImplCopyWithImpl( + _$QueueItemStateImpl _value, $Res Function(_$QueueItemStateImpl) _then) : super(_value, _then); @pragma('vm:prefer-inline') @@ -885,7 +887,7 @@ class __$$_QueueItemStateCopyWithImpl<$Res> Object? contextId = freezed, Object? contextTitle = freezed, }) { - return _then(_$_QueueItemState( + return _then(_$QueueItemStateImpl( id: null == id ? _value.id : id // ignore: cast_nullable_to_non_nullable @@ -908,15 +910,15 @@ class __$$_QueueItemStateCopyWithImpl<$Res> /// @nodoc @JsonSerializable() -class _$_QueueItemState implements _QueueItemState { - const _$_QueueItemState( +class _$QueueItemStateImpl implements _QueueItemState { + const _$QueueItemStateImpl( {required this.id, required this.contextType, this.contextId, this.contextTitle}); - factory _$_QueueItemState.fromJson(Map json) => - _$$_QueueItemStateFromJson(json); + factory _$QueueItemStateImpl.fromJson(Map json) => + _$$QueueItemStateImplFromJson(json); @override final String id; @@ -933,10 +935,10 @@ class _$_QueueItemState implements _QueueItemState { } @override - bool operator ==(dynamic other) { + bool operator ==(Object other) { return identical(this, other) || (other.runtimeType == runtimeType && - other is _$_QueueItemState && + other is _$QueueItemStateImpl && (identical(other.id, id) || other.id == id) && (identical(other.contextType, contextType) || other.contextType == contextType) && @@ -954,12 +956,13 @@ class _$_QueueItemState implements _QueueItemState { @JsonKey(ignore: true) @override @pragma('vm:prefer-inline') - _$$_QueueItemStateCopyWith<_$_QueueItemState> get copyWith => - __$$_QueueItemStateCopyWithImpl<_$_QueueItemState>(this, _$identity); + _$$QueueItemStateImplCopyWith<_$QueueItemStateImpl> get copyWith => + __$$QueueItemStateImplCopyWithImpl<_$QueueItemStateImpl>( + this, _$identity); @override Map toJson() { - return _$$_QueueItemStateToJson( + return _$$QueueItemStateImplToJson( this, ); } @@ -970,10 +973,10 @@ abstract class _QueueItemState implements QueueItemState { {required final String id, required final QueueContextType contextType, final String? contextId, - final String? contextTitle}) = _$_QueueItemState; + final String? contextTitle}) = _$QueueItemStateImpl; factory _QueueItemState.fromJson(Map json) = - _$_QueueItemState.fromJson; + _$QueueItemStateImpl.fromJson; @override String get id; @@ -985,7 +988,7 @@ abstract class _QueueItemState implements QueueItemState { String? get contextTitle; @override @JsonKey(ignore: true) - _$$_QueueItemStateCopyWith<_$_QueueItemState> get copyWith => + _$$QueueItemStateImplCopyWith<_$QueueItemStateImpl> get copyWith => throw _privateConstructorUsedError; } @@ -1081,11 +1084,11 @@ class _$MediaItemDataCopyWithImpl<$Res, $Val extends MediaItemData> } /// @nodoc -abstract class _$$_MediaItemDataCopyWith<$Res> +abstract class _$$MediaItemDataImplCopyWith<$Res> implements $MediaItemDataCopyWith<$Res> { - factory _$$_MediaItemDataCopyWith( - _$_MediaItemData value, $Res Function(_$_MediaItemData) then) = - __$$_MediaItemDataCopyWithImpl<$Res>; + factory _$$MediaItemDataImplCopyWith( + _$MediaItemDataImpl value, $Res Function(_$MediaItemDataImpl) then) = + __$$MediaItemDataImplCopyWithImpl<$Res>; @override @useResult $Res call( @@ -1100,11 +1103,11 @@ abstract class _$$_MediaItemDataCopyWith<$Res> } /// @nodoc -class __$$_MediaItemDataCopyWithImpl<$Res> - extends _$MediaItemDataCopyWithImpl<$Res, _$_MediaItemData> - implements _$$_MediaItemDataCopyWith<$Res> { - __$$_MediaItemDataCopyWithImpl( - _$_MediaItemData _value, $Res Function(_$_MediaItemData) _then) +class __$$MediaItemDataImplCopyWithImpl<$Res> + extends _$MediaItemDataCopyWithImpl<$Res, _$MediaItemDataImpl> + implements _$$MediaItemDataImplCopyWith<$Res> { + __$$MediaItemDataImplCopyWithImpl( + _$MediaItemDataImpl _value, $Res Function(_$MediaItemDataImpl) _then) : super(_value, _then); @pragma('vm:prefer-inline') @@ -1116,7 +1119,7 @@ class __$$_MediaItemDataCopyWithImpl<$Res> Object? contextType = null, Object? contextId = freezed, }) { - return _then(_$_MediaItemData( + return _then(_$MediaItemDataImpl( sourceId: null == sourceId ? _value.sourceId : sourceId // ignore: cast_nullable_to_non_nullable @@ -1143,16 +1146,16 @@ class __$$_MediaItemDataCopyWithImpl<$Res> /// @nodoc @JsonSerializable() -class _$_MediaItemData implements _MediaItemData { - const _$_MediaItemData( +class _$MediaItemDataImpl implements _MediaItemData { + const _$MediaItemDataImpl( {required this.sourceId, this.albumId, @MediaItemArtCacheConverter() this.artCache, required this.contextType, this.contextId}); - factory _$_MediaItemData.fromJson(Map json) => - _$$_MediaItemDataFromJson(json); + factory _$MediaItemDataImpl.fromJson(Map json) => + _$$MediaItemDataImplFromJson(json); @override final int sourceId; @@ -1172,10 +1175,10 @@ class _$_MediaItemData implements _MediaItemData { } @override - bool operator ==(dynamic other) { + bool operator ==(Object other) { return identical(this, other) || (other.runtimeType == runtimeType && - other is _$_MediaItemData && + other is _$MediaItemDataImpl && (identical(other.sourceId, sourceId) || other.sourceId == sourceId) && (identical(other.albumId, albumId) || other.albumId == albumId) && @@ -1195,12 +1198,12 @@ class _$_MediaItemData implements _MediaItemData { @JsonKey(ignore: true) @override @pragma('vm:prefer-inline') - _$$_MediaItemDataCopyWith<_$_MediaItemData> get copyWith => - __$$_MediaItemDataCopyWithImpl<_$_MediaItemData>(this, _$identity); + _$$MediaItemDataImplCopyWith<_$MediaItemDataImpl> get copyWith => + __$$MediaItemDataImplCopyWithImpl<_$MediaItemDataImpl>(this, _$identity); @override Map toJson() { - return _$$_MediaItemDataToJson( + return _$$MediaItemDataImplToJson( this, ); } @@ -1212,10 +1215,10 @@ abstract class _MediaItemData implements MediaItemData { final String? albumId, @MediaItemArtCacheConverter() final MediaItemArtCache? artCache, required final QueueContextType contextType, - final String? contextId}) = _$_MediaItemData; + final String? contextId}) = _$MediaItemDataImpl; factory _MediaItemData.fromJson(Map json) = - _$_MediaItemData.fromJson; + _$MediaItemDataImpl.fromJson; @override int get sourceId; @@ -1230,7 +1233,7 @@ abstract class _MediaItemData implements MediaItemData { String? get contextId; @override @JsonKey(ignore: true) - _$$_MediaItemDataCopyWith<_$_MediaItemData> get copyWith => + _$$MediaItemDataImplCopyWith<_$MediaItemDataImpl> get copyWith => throw _privateConstructorUsedError; } @@ -1304,11 +1307,11 @@ class _$MediaItemArtCacheCopyWithImpl<$Res, $Val extends MediaItemArtCache> } /// @nodoc -abstract class _$$_MediaItemArtCacheCopyWith<$Res> +abstract class _$$MediaItemArtCacheImplCopyWith<$Res> implements $MediaItemArtCacheCopyWith<$Res> { - factory _$$_MediaItemArtCacheCopyWith(_$_MediaItemArtCache value, - $Res Function(_$_MediaItemArtCache) then) = - __$$_MediaItemArtCacheCopyWithImpl<$Res>; + factory _$$MediaItemArtCacheImplCopyWith(_$MediaItemArtCacheImpl value, + $Res Function(_$MediaItemArtCacheImpl) then) = + __$$MediaItemArtCacheImplCopyWithImpl<$Res>; @override @useResult $Res call( @@ -1319,11 +1322,11 @@ abstract class _$$_MediaItemArtCacheCopyWith<$Res> } /// @nodoc -class __$$_MediaItemArtCacheCopyWithImpl<$Res> - extends _$MediaItemArtCacheCopyWithImpl<$Res, _$_MediaItemArtCache> - implements _$$_MediaItemArtCacheCopyWith<$Res> { - __$$_MediaItemArtCacheCopyWithImpl( - _$_MediaItemArtCache _value, $Res Function(_$_MediaItemArtCache) _then) +class __$$MediaItemArtCacheImplCopyWithImpl<$Res> + extends _$MediaItemArtCacheCopyWithImpl<$Res, _$MediaItemArtCacheImpl> + implements _$$MediaItemArtCacheImplCopyWith<$Res> { + __$$MediaItemArtCacheImplCopyWithImpl(_$MediaItemArtCacheImpl _value, + $Res Function(_$MediaItemArtCacheImpl) _then) : super(_value, _then); @pragma('vm:prefer-inline') @@ -1334,7 +1337,7 @@ class __$$_MediaItemArtCacheCopyWithImpl<$Res> Object? thumbnailArtUri = null, Object? thumbnailArtCacheKey = null, }) { - return _then(_$_MediaItemArtCache( + return _then(_$MediaItemArtCacheImpl( fullArtUri: null == fullArtUri ? _value.fullArtUri : fullArtUri // ignore: cast_nullable_to_non_nullable @@ -1357,15 +1360,15 @@ class __$$_MediaItemArtCacheCopyWithImpl<$Res> /// @nodoc @JsonSerializable() -class _$_MediaItemArtCache implements _MediaItemArtCache { - const _$_MediaItemArtCache( +class _$MediaItemArtCacheImpl implements _MediaItemArtCache { + const _$MediaItemArtCacheImpl( {required this.fullArtUri, required this.fullArtCacheKey, required this.thumbnailArtUri, required this.thumbnailArtCacheKey}); - factory _$_MediaItemArtCache.fromJson(Map json) => - _$$_MediaItemArtCacheFromJson(json); + factory _$MediaItemArtCacheImpl.fromJson(Map json) => + _$$MediaItemArtCacheImplFromJson(json); @override final Uri fullArtUri; @@ -1382,10 +1385,10 @@ class _$_MediaItemArtCache implements _MediaItemArtCache { } @override - bool operator ==(dynamic other) { + bool operator ==(Object other) { return identical(this, other) || (other.runtimeType == runtimeType && - other is _$_MediaItemArtCache && + other is _$MediaItemArtCacheImpl && (identical(other.fullArtUri, fullArtUri) || other.fullArtUri == fullArtUri) && (identical(other.fullArtCacheKey, fullArtCacheKey) || @@ -1404,13 +1407,13 @@ class _$_MediaItemArtCache implements _MediaItemArtCache { @JsonKey(ignore: true) @override @pragma('vm:prefer-inline') - _$$_MediaItemArtCacheCopyWith<_$_MediaItemArtCache> get copyWith => - __$$_MediaItemArtCacheCopyWithImpl<_$_MediaItemArtCache>( + _$$MediaItemArtCacheImplCopyWith<_$MediaItemArtCacheImpl> get copyWith => + __$$MediaItemArtCacheImplCopyWithImpl<_$MediaItemArtCacheImpl>( this, _$identity); @override Map toJson() { - return _$$_MediaItemArtCacheToJson( + return _$$MediaItemArtCacheImplToJson( this, ); } @@ -1421,10 +1424,10 @@ abstract class _MediaItemArtCache implements MediaItemArtCache { {required final Uri fullArtUri, required final String fullArtCacheKey, required final Uri thumbnailArtUri, - required final String thumbnailArtCacheKey}) = _$_MediaItemArtCache; + required final String thumbnailArtCacheKey}) = _$MediaItemArtCacheImpl; factory _MediaItemArtCache.fromJson(Map json) = - _$_MediaItemArtCache.fromJson; + _$MediaItemArtCacheImpl.fromJson; @override Uri get fullArtUri; @@ -1436,7 +1439,7 @@ abstract class _MediaItemArtCache implements MediaItemArtCache { String get thumbnailArtCacheKey; @override @JsonKey(ignore: true) - _$$_MediaItemArtCacheCopyWith<_$_MediaItemArtCache> get copyWith => + _$$MediaItemArtCacheImplCopyWith<_$MediaItemArtCacheImpl> get copyWith => throw _privateConstructorUsedError; } @@ -1495,22 +1498,22 @@ class _$ListDownloadStatusCopyWithImpl<$Res, $Val extends ListDownloadStatus> } /// @nodoc -abstract class _$$_ListDownloadStatusCopyWith<$Res> +abstract class _$$ListDownloadStatusImplCopyWith<$Res> implements $ListDownloadStatusCopyWith<$Res> { - factory _$$_ListDownloadStatusCopyWith(_$_ListDownloadStatus value, - $Res Function(_$_ListDownloadStatus) then) = - __$$_ListDownloadStatusCopyWithImpl<$Res>; + factory _$$ListDownloadStatusImplCopyWith(_$ListDownloadStatusImpl value, + $Res Function(_$ListDownloadStatusImpl) then) = + __$$ListDownloadStatusImplCopyWithImpl<$Res>; @override @useResult $Res call({int total, int downloaded, int downloading}); } /// @nodoc -class __$$_ListDownloadStatusCopyWithImpl<$Res> - extends _$ListDownloadStatusCopyWithImpl<$Res, _$_ListDownloadStatus> - implements _$$_ListDownloadStatusCopyWith<$Res> { - __$$_ListDownloadStatusCopyWithImpl( - _$_ListDownloadStatus _value, $Res Function(_$_ListDownloadStatus) _then) +class __$$ListDownloadStatusImplCopyWithImpl<$Res> + extends _$ListDownloadStatusCopyWithImpl<$Res, _$ListDownloadStatusImpl> + implements _$$ListDownloadStatusImplCopyWith<$Res> { + __$$ListDownloadStatusImplCopyWithImpl(_$ListDownloadStatusImpl _value, + $Res Function(_$ListDownloadStatusImpl) _then) : super(_value, _then); @pragma('vm:prefer-inline') @@ -1520,7 +1523,7 @@ class __$$_ListDownloadStatusCopyWithImpl<$Res> Object? downloaded = null, Object? downloading = null, }) { - return _then(_$_ListDownloadStatus( + return _then(_$ListDownloadStatusImpl( total: null == total ? _value.total : total // ignore: cast_nullable_to_non_nullable @@ -1539,8 +1542,8 @@ class __$$_ListDownloadStatusCopyWithImpl<$Res> /// @nodoc -class _$_ListDownloadStatus implements _ListDownloadStatus { - const _$_ListDownloadStatus( +class _$ListDownloadStatusImpl implements _ListDownloadStatus { + const _$ListDownloadStatusImpl( {required this.total, required this.downloaded, required this.downloading}); @@ -1558,10 +1561,10 @@ class _$_ListDownloadStatus implements _ListDownloadStatus { } @override - bool operator ==(dynamic other) { + bool operator ==(Object other) { return identical(this, other) || (other.runtimeType == runtimeType && - other is _$_ListDownloadStatus && + other is _$ListDownloadStatusImpl && (identical(other.total, total) || other.total == total) && (identical(other.downloaded, downloaded) || other.downloaded == downloaded) && @@ -1575,8 +1578,8 @@ class _$_ListDownloadStatus implements _ListDownloadStatus { @JsonKey(ignore: true) @override @pragma('vm:prefer-inline') - _$$_ListDownloadStatusCopyWith<_$_ListDownloadStatus> get copyWith => - __$$_ListDownloadStatusCopyWithImpl<_$_ListDownloadStatus>( + _$$ListDownloadStatusImplCopyWith<_$ListDownloadStatusImpl> get copyWith => + __$$ListDownloadStatusImplCopyWithImpl<_$ListDownloadStatusImpl>( this, _$identity); } @@ -1584,7 +1587,7 @@ abstract class _ListDownloadStatus implements ListDownloadStatus { const factory _ListDownloadStatus( {required final int total, required final int downloaded, - required final int downloading}) = _$_ListDownloadStatus; + required final int downloading}) = _$ListDownloadStatusImpl; @override int get total; @@ -1594,7 +1597,7 @@ abstract class _ListDownloadStatus implements ListDownloadStatus { int get downloading; @override @JsonKey(ignore: true) - _$$_ListDownloadStatusCopyWith<_$_ListDownloadStatus> get copyWith => + _$$ListDownloadStatusImplCopyWith<_$ListDownloadStatusImpl> get copyWith => throw _privateConstructorUsedError; } @@ -1685,22 +1688,22 @@ class _$MultiChoiceOptionCopyWithImpl<$Res, $Val extends MultiChoiceOption> } /// @nodoc -abstract class _$$_MultiChoiceOptionCopyWith<$Res> +abstract class _$$MultiChoiceOptionImplCopyWith<$Res> implements $MultiChoiceOptionCopyWith<$Res> { - factory _$$_MultiChoiceOptionCopyWith(_$_MultiChoiceOption value, - $Res Function(_$_MultiChoiceOption) then) = - __$$_MultiChoiceOptionCopyWithImpl<$Res>; + factory _$$MultiChoiceOptionImplCopyWith(_$MultiChoiceOptionImpl value, + $Res Function(_$MultiChoiceOptionImpl) then) = + __$$MultiChoiceOptionImplCopyWithImpl<$Res>; @override @useResult $Res call({String title}); } /// @nodoc -class __$$_MultiChoiceOptionCopyWithImpl<$Res> - extends _$MultiChoiceOptionCopyWithImpl<$Res, _$_MultiChoiceOption> - implements _$$_MultiChoiceOptionCopyWith<$Res> { - __$$_MultiChoiceOptionCopyWithImpl( - _$_MultiChoiceOption _value, $Res Function(_$_MultiChoiceOption) _then) +class __$$MultiChoiceOptionImplCopyWithImpl<$Res> + extends _$MultiChoiceOptionCopyWithImpl<$Res, _$MultiChoiceOptionImpl> + implements _$$MultiChoiceOptionImplCopyWith<$Res> { + __$$MultiChoiceOptionImplCopyWithImpl(_$MultiChoiceOptionImpl _value, + $Res Function(_$MultiChoiceOptionImpl) _then) : super(_value, _then); @pragma('vm:prefer-inline') @@ -1708,7 +1711,7 @@ class __$$_MultiChoiceOptionCopyWithImpl<$Res> $Res call({ Object? title = null, }) { - return _then(_$_MultiChoiceOption( + return _then(_$MultiChoiceOptionImpl( title: null == title ? _value.title : title // ignore: cast_nullable_to_non_nullable @@ -1719,8 +1722,8 @@ class __$$_MultiChoiceOptionCopyWithImpl<$Res> /// @nodoc -class _$_MultiChoiceOption implements _MultiChoiceOption { - const _$_MultiChoiceOption({required this.title}); +class _$MultiChoiceOptionImpl implements _MultiChoiceOption { + const _$MultiChoiceOptionImpl({required this.title}); @override final String title; @@ -1731,10 +1734,10 @@ class _$_MultiChoiceOption implements _MultiChoiceOption { } @override - bool operator ==(dynamic other) { + bool operator ==(Object other) { return identical(this, other) || (other.runtimeType == runtimeType && - other is _$_MultiChoiceOption && + other is _$MultiChoiceOptionImpl && (identical(other.title, title) || other.title == title)); } @@ -1744,8 +1747,8 @@ class _$_MultiChoiceOption implements _MultiChoiceOption { @JsonKey(ignore: true) @override @pragma('vm:prefer-inline') - _$$_MultiChoiceOptionCopyWith<_$_MultiChoiceOption> get copyWith => - __$$_MultiChoiceOptionCopyWithImpl<_$_MultiChoiceOption>( + _$$MultiChoiceOptionImplCopyWith<_$MultiChoiceOptionImpl> get copyWith => + __$$MultiChoiceOptionImplCopyWithImpl<_$MultiChoiceOptionImpl>( this, _$identity); @override @@ -1819,33 +1822,33 @@ class _$_MultiChoiceOption implements _MultiChoiceOption { abstract class _MultiChoiceOption implements MultiChoiceOption { const factory _MultiChoiceOption({required final String title}) = - _$_MultiChoiceOption; + _$MultiChoiceOptionImpl; @override String get title; @override @JsonKey(ignore: true) - _$$_MultiChoiceOptionCopyWith<_$_MultiChoiceOption> get copyWith => + _$$MultiChoiceOptionImplCopyWith<_$MultiChoiceOptionImpl> get copyWith => throw _privateConstructorUsedError; } /// @nodoc -abstract class _$$_MultiChoiceOptionIntCopyWith<$Res> +abstract class _$$MultiChoiceOptionIntImplCopyWith<$Res> implements $MultiChoiceOptionCopyWith<$Res> { - factory _$$_MultiChoiceOptionIntCopyWith(_$_MultiChoiceOptionInt value, - $Res Function(_$_MultiChoiceOptionInt) then) = - __$$_MultiChoiceOptionIntCopyWithImpl<$Res>; + factory _$$MultiChoiceOptionIntImplCopyWith(_$MultiChoiceOptionIntImpl value, + $Res Function(_$MultiChoiceOptionIntImpl) then) = + __$$MultiChoiceOptionIntImplCopyWithImpl<$Res>; @override @useResult $Res call({String title, int option}); } /// @nodoc -class __$$_MultiChoiceOptionIntCopyWithImpl<$Res> - extends _$MultiChoiceOptionCopyWithImpl<$Res, _$_MultiChoiceOptionInt> - implements _$$_MultiChoiceOptionIntCopyWith<$Res> { - __$$_MultiChoiceOptionIntCopyWithImpl(_$_MultiChoiceOptionInt _value, - $Res Function(_$_MultiChoiceOptionInt) _then) +class __$$MultiChoiceOptionIntImplCopyWithImpl<$Res> + extends _$MultiChoiceOptionCopyWithImpl<$Res, _$MultiChoiceOptionIntImpl> + implements _$$MultiChoiceOptionIntImplCopyWith<$Res> { + __$$MultiChoiceOptionIntImplCopyWithImpl(_$MultiChoiceOptionIntImpl _value, + $Res Function(_$MultiChoiceOptionIntImpl) _then) : super(_value, _then); @pragma('vm:prefer-inline') @@ -1854,7 +1857,7 @@ class __$$_MultiChoiceOptionIntCopyWithImpl<$Res> Object? title = null, Object? option = null, }) { - return _then(_$_MultiChoiceOptionInt( + return _then(_$MultiChoiceOptionIntImpl( title: null == title ? _value.title : title // ignore: cast_nullable_to_non_nullable @@ -1869,8 +1872,8 @@ class __$$_MultiChoiceOptionIntCopyWithImpl<$Res> /// @nodoc -class _$_MultiChoiceOptionInt implements _MultiChoiceOptionInt { - _$_MultiChoiceOptionInt({required this.title, required this.option}); +class _$MultiChoiceOptionIntImpl implements _MultiChoiceOptionInt { + _$MultiChoiceOptionIntImpl({required this.title, required this.option}); @override final String title; @@ -1883,10 +1886,10 @@ class _$_MultiChoiceOptionInt implements _MultiChoiceOptionInt { } @override - bool operator ==(dynamic other) { + bool operator ==(Object other) { return identical(this, other) || (other.runtimeType == runtimeType && - other is _$_MultiChoiceOptionInt && + other is _$MultiChoiceOptionIntImpl && (identical(other.title, title) || other.title == title) && (identical(other.option, option) || other.option == option)); } @@ -1897,9 +1900,10 @@ class _$_MultiChoiceOptionInt implements _MultiChoiceOptionInt { @JsonKey(ignore: true) @override @pragma('vm:prefer-inline') - _$$_MultiChoiceOptionIntCopyWith<_$_MultiChoiceOptionInt> get copyWith => - __$$_MultiChoiceOptionIntCopyWithImpl<_$_MultiChoiceOptionInt>( - this, _$identity); + _$$MultiChoiceOptionIntImplCopyWith<_$MultiChoiceOptionIntImpl> + get copyWith => + __$$MultiChoiceOptionIntImplCopyWithImpl<_$MultiChoiceOptionIntImpl>( + this, _$identity); @override @optionalTypeArgs @@ -1973,34 +1977,36 @@ class _$_MultiChoiceOptionInt implements _MultiChoiceOptionInt { abstract class _MultiChoiceOptionInt implements MultiChoiceOption { factory _MultiChoiceOptionInt( {required final String title, - required final int option}) = _$_MultiChoiceOptionInt; + required final int option}) = _$MultiChoiceOptionIntImpl; @override String get title; int get option; @override @JsonKey(ignore: true) - _$$_MultiChoiceOptionIntCopyWith<_$_MultiChoiceOptionInt> get copyWith => - throw _privateConstructorUsedError; + _$$MultiChoiceOptionIntImplCopyWith<_$MultiChoiceOptionIntImpl> + get copyWith => throw _privateConstructorUsedError; } /// @nodoc -abstract class _$$_MultiChoiceOptionStringCopyWith<$Res> +abstract class _$$MultiChoiceOptionStringImplCopyWith<$Res> implements $MultiChoiceOptionCopyWith<$Res> { - factory _$$_MultiChoiceOptionStringCopyWith(_$_MultiChoiceOptionString value, - $Res Function(_$_MultiChoiceOptionString) then) = - __$$_MultiChoiceOptionStringCopyWithImpl<$Res>; + factory _$$MultiChoiceOptionStringImplCopyWith( + _$MultiChoiceOptionStringImpl value, + $Res Function(_$MultiChoiceOptionStringImpl) then) = + __$$MultiChoiceOptionStringImplCopyWithImpl<$Res>; @override @useResult $Res call({String title, String option}); } /// @nodoc -class __$$_MultiChoiceOptionStringCopyWithImpl<$Res> - extends _$MultiChoiceOptionCopyWithImpl<$Res, _$_MultiChoiceOptionString> - implements _$$_MultiChoiceOptionStringCopyWith<$Res> { - __$$_MultiChoiceOptionStringCopyWithImpl(_$_MultiChoiceOptionString _value, - $Res Function(_$_MultiChoiceOptionString) _then) +class __$$MultiChoiceOptionStringImplCopyWithImpl<$Res> + extends _$MultiChoiceOptionCopyWithImpl<$Res, _$MultiChoiceOptionStringImpl> + implements _$$MultiChoiceOptionStringImplCopyWith<$Res> { + __$$MultiChoiceOptionStringImplCopyWithImpl( + _$MultiChoiceOptionStringImpl _value, + $Res Function(_$MultiChoiceOptionStringImpl) _then) : super(_value, _then); @pragma('vm:prefer-inline') @@ -2009,7 +2015,7 @@ class __$$_MultiChoiceOptionStringCopyWithImpl<$Res> Object? title = null, Object? option = null, }) { - return _then(_$_MultiChoiceOptionString( + return _then(_$MultiChoiceOptionStringImpl( title: null == title ? _value.title : title // ignore: cast_nullable_to_non_nullable @@ -2024,8 +2030,8 @@ class __$$_MultiChoiceOptionStringCopyWithImpl<$Res> /// @nodoc -class _$_MultiChoiceOptionString implements _MultiChoiceOptionString { - _$_MultiChoiceOptionString({required this.title, required this.option}); +class _$MultiChoiceOptionStringImpl implements _MultiChoiceOptionString { + _$MultiChoiceOptionStringImpl({required this.title, required this.option}); @override final String title; @@ -2038,10 +2044,10 @@ class _$_MultiChoiceOptionString implements _MultiChoiceOptionString { } @override - bool operator ==(dynamic other) { + bool operator ==(Object other) { return identical(this, other) || (other.runtimeType == runtimeType && - other is _$_MultiChoiceOptionString && + other is _$MultiChoiceOptionStringImpl && (identical(other.title, title) || other.title == title) && (identical(other.option, option) || other.option == option)); } @@ -2052,10 +2058,9 @@ class _$_MultiChoiceOptionString implements _MultiChoiceOptionString { @JsonKey(ignore: true) @override @pragma('vm:prefer-inline') - _$$_MultiChoiceOptionStringCopyWith<_$_MultiChoiceOptionString> - get copyWith => - __$$_MultiChoiceOptionStringCopyWithImpl<_$_MultiChoiceOptionString>( - this, _$identity); + _$$MultiChoiceOptionStringImplCopyWith<_$MultiChoiceOptionStringImpl> + get copyWith => __$$MultiChoiceOptionStringImplCopyWithImpl< + _$MultiChoiceOptionStringImpl>(this, _$identity); @override @optionalTypeArgs @@ -2129,13 +2134,13 @@ class _$_MultiChoiceOptionString implements _MultiChoiceOptionString { abstract class _MultiChoiceOptionString implements MultiChoiceOption { factory _MultiChoiceOptionString( {required final String title, - required final String option}) = _$_MultiChoiceOptionString; + required final String option}) = _$MultiChoiceOptionStringImpl; @override String get title; String get option; @override @JsonKey(ignore: true) - _$$_MultiChoiceOptionStringCopyWith<_$_MultiChoiceOptionString> + _$$MultiChoiceOptionStringImplCopyWith<_$MultiChoiceOptionStringImpl> get copyWith => throw _privateConstructorUsedError; } diff --git a/lib/models/support.g.dart b/lib/models/support.g.dart index e0dbf0e..2b38dc5 100644 --- a/lib/models/support.g.dart +++ b/lib/models/support.g.dart @@ -6,15 +6,16 @@ part of 'support.dart'; // JsonSerializableGenerator // ************************************************************************** -_$_QueueItemState _$$_QueueItemStateFromJson(Map json) => - _$_QueueItemState( +_$QueueItemStateImpl _$$QueueItemStateImplFromJson(Map json) => + _$QueueItemStateImpl( id: json['id'] as String, contextType: $enumDecode(_$QueueContextTypeEnumMap, json['contextType']), contextId: json['contextId'] as String?, contextTitle: json['contextTitle'] as String?, ); -Map _$$_QueueItemStateToJson(_$_QueueItemState instance) => +Map _$$QueueItemStateImplToJson( + _$QueueItemStateImpl instance) => { 'id': instance.id, 'contextType': _$QueueContextTypeEnumMap[instance.contextType]!, @@ -31,9 +32,9 @@ const _$QueueContextTypeEnumMap = { QueueContextType.artist: 'artist', }; -_$_MediaItemData _$$_MediaItemDataFromJson(Map json) => - _$_MediaItemData( - sourceId: json['sourceId'] as int, +_$MediaItemDataImpl _$$MediaItemDataImplFromJson(Map json) => + _$MediaItemDataImpl( + sourceId: (json['sourceId'] as num).toInt(), albumId: json['albumId'] as String?, artCache: _$JsonConverterFromJson, MediaItemArtCache>( @@ -42,7 +43,7 @@ _$_MediaItemData _$$_MediaItemDataFromJson(Map json) => contextId: json['contextId'] as String?, ); -Map _$$_MediaItemDataToJson(_$_MediaItemData instance) => +Map _$$MediaItemDataImplToJson(_$MediaItemDataImpl instance) => { 'sourceId': instance.sourceId, 'albumId': instance.albumId, @@ -65,16 +66,17 @@ Json? _$JsonConverterToJson( ) => value == null ? null : toJson(value); -_$_MediaItemArtCache _$$_MediaItemArtCacheFromJson(Map json) => - _$_MediaItemArtCache( +_$MediaItemArtCacheImpl _$$MediaItemArtCacheImplFromJson( + Map json) => + _$MediaItemArtCacheImpl( fullArtUri: Uri.parse(json['fullArtUri'] as String), fullArtCacheKey: json['fullArtCacheKey'] as String, thumbnailArtUri: Uri.parse(json['thumbnailArtUri'] as String), thumbnailArtCacheKey: json['thumbnailArtCacheKey'] as String, ); -Map _$$_MediaItemArtCacheToJson( - _$_MediaItemArtCache instance) => +Map _$$MediaItemArtCacheImplToJson( + _$MediaItemArtCacheImpl instance) => { 'fullArtUri': instance.fullArtUri.toString(), 'fullArtCacheKey': instance.fullArtCacheKey, diff --git a/lib/services/audio_service.g.dart b/lib/services/audio_service.g.dart index 3462897..55a7638 100644 --- a/lib/services/audio_service.g.dart +++ b/lib/services/audio_service.g.dart @@ -35,4 +35,5 @@ final audioControlProvider = Provider.internal( ); typedef AudioControlRef = ProviderRef; -// ignore_for_file: unnecessary_raw_strings, subtype_of_sealed_class, invalid_use_of_internal_member, do_not_use_environment, prefer_const_constructors, public_member_api_docs, avoid_private_typedef_functions +// ignore_for_file: type=lint +// ignore_for_file: subtype_of_sealed_class, invalid_use_of_internal_member, invalid_use_of_visible_for_testing_member diff --git a/lib/services/cache_service.g.dart b/lib/services/cache_service.g.dart index 7b6a2a9..e14f632 100644 --- a/lib/services/cache_service.g.dart +++ b/lib/services/cache_service.g.dart @@ -20,4 +20,5 @@ final cacheServiceProvider = Provider.internal( ); typedef CacheServiceRef = ProviderRef; -// ignore_for_file: unnecessary_raw_strings, subtype_of_sealed_class, invalid_use_of_internal_member, do_not_use_environment, prefer_const_constructors, public_member_api_docs, avoid_private_typedef_functions +// ignore_for_file: type=lint +// ignore_for_file: subtype_of_sealed_class, invalid_use_of_internal_member, invalid_use_of_visible_for_testing_member diff --git a/lib/services/download_service.dart b/lib/services/download_service.dart index 7955944..0638423 100644 --- a/lib/services/download_service.dart +++ b/lib/services/download_service.dart @@ -534,7 +534,7 @@ class DownloadService extends _$DownloadService { _port.asyncMap((dynamic data) async { final taskId = (data as List)[0] as String; - final status = DownloadTaskStatus(data[1] as int); + final status = DownloadTaskStatus.fromInt(data[1] as int); final progress = data[2] as int; var download = state.downloads.firstWhereOrNull( @@ -579,11 +579,11 @@ class DownloadService extends _$DownloadService { @pragma('vm:entry-point') static void downloadCallback( String id, - DownloadTaskStatus status, + int status, int progress, ) { IsolateNameServer.lookupPortByName('downloader_send_port')?.send( - [id, status.value, progress], + [id, status, progress], ); } } diff --git a/lib/services/download_service.freezed.dart b/lib/services/download_service.freezed.dart index 22528b0..809c721 100644 --- a/lib/services/download_service.freezed.dart +++ b/lib/services/download_service.freezed.dart @@ -12,7 +12,7 @@ part of 'download_service.dart'; T _$identity(T value) => value; final _privateConstructorUsedError = UnsupportedError( - 'It seems like you constructed your class using `MyClass._()`. This constructor is only meant to be used by freezed and you are not supposed to need it nor use it.\nPlease check the documentation here for more information: https://github.com/rrousselGit/freezed#custom-getters-and-methods'); + 'It seems like you constructed your class using `MyClass._()`. This constructor is only meant to be used by freezed and you are not supposed to need it nor use it.\nPlease check the documentation here for more information: https://github.com/rrousselGit/freezed#adding-getters-and-methods-to-our-models'); /// @nodoc mixin _$DownloadState { @@ -86,11 +86,11 @@ class _$DownloadStateCopyWithImpl<$Res, $Val extends DownloadState> } /// @nodoc -abstract class _$$_DownloadStateCopyWith<$Res> +abstract class _$$DownloadStateImplCopyWith<$Res> implements $DownloadStateCopyWith<$Res> { - factory _$$_DownloadStateCopyWith( - _$_DownloadState value, $Res Function(_$_DownloadState) then) = - __$$_DownloadStateCopyWithImpl<$Res>; + factory _$$DownloadStateImplCopyWith( + _$DownloadStateImpl value, $Res Function(_$DownloadStateImpl) then) = + __$$DownloadStateImplCopyWithImpl<$Res>; @override @useResult $Res call( @@ -102,11 +102,11 @@ abstract class _$$_DownloadStateCopyWith<$Res> } /// @nodoc -class __$$_DownloadStateCopyWithImpl<$Res> - extends _$DownloadStateCopyWithImpl<$Res, _$_DownloadState> - implements _$$_DownloadStateCopyWith<$Res> { - __$$_DownloadStateCopyWithImpl( - _$_DownloadState _value, $Res Function(_$_DownloadState) _then) +class __$$DownloadStateImplCopyWithImpl<$Res> + extends _$DownloadStateCopyWithImpl<$Res, _$DownloadStateImpl> + implements _$$DownloadStateImplCopyWith<$Res> { + __$$DownloadStateImplCopyWithImpl( + _$DownloadStateImpl _value, $Res Function(_$DownloadStateImpl) _then) : super(_value, _then); @pragma('vm:prefer-inline') @@ -118,7 +118,7 @@ class __$$_DownloadStateCopyWithImpl<$Res> Object? listCancels = null, Object? saveDir = null, }) { - return _then(_$_DownloadState( + return _then(_$DownloadStateImpl( downloads: null == downloads ? _value.downloads : downloads // ignore: cast_nullable_to_non_nullable @@ -145,8 +145,8 @@ class __$$_DownloadStateCopyWithImpl<$Res> /// @nodoc -class _$_DownloadState implements _DownloadState { - const _$_DownloadState( +class _$DownloadStateImpl implements _DownloadState { + const _$DownloadStateImpl( {this.downloads = const IListConst([]), this.deletes = const IListConst([]), this.listDownloads = const IListConst([]), @@ -174,10 +174,10 @@ class _$_DownloadState implements _DownloadState { } @override - bool operator ==(dynamic other) { + bool operator ==(Object other) { return identical(this, other) || (other.runtimeType == runtimeType && - other is _$_DownloadState && + other is _$DownloadStateImpl && const DeepCollectionEquality().equals(other.downloads, downloads) && const DeepCollectionEquality().equals(other.deletes, deletes) && const DeepCollectionEquality() @@ -199,8 +199,8 @@ class _$_DownloadState implements _DownloadState { @JsonKey(ignore: true) @override @pragma('vm:prefer-inline') - _$$_DownloadStateCopyWith<_$_DownloadState> get copyWith => - __$$_DownloadStateCopyWithImpl<_$_DownloadState>(this, _$identity); + _$$DownloadStateImplCopyWith<_$DownloadStateImpl> get copyWith => + __$$DownloadStateImplCopyWithImpl<_$DownloadStateImpl>(this, _$identity); } abstract class _DownloadState implements DownloadState { @@ -209,7 +209,7 @@ abstract class _DownloadState implements DownloadState { final IList deletes, final IList listDownloads, final IList listCancels, - required final String saveDir}) = _$_DownloadState; + required final String saveDir}) = _$DownloadStateImpl; @override IList get downloads; @@ -223,7 +223,7 @@ abstract class _DownloadState implements DownloadState { String get saveDir; @override @JsonKey(ignore: true) - _$$_DownloadStateCopyWith<_$_DownloadState> get copyWith => + _$$DownloadStateImplCopyWith<_$DownloadStateImpl> get copyWith => throw _privateConstructorUsedError; } @@ -319,10 +319,11 @@ class _$DownloadCopyWithImpl<$Res, $Val extends Download> } /// @nodoc -abstract class _$$_DownloadCopyWith<$Res> implements $DownloadCopyWith<$Res> { - factory _$$_DownloadCopyWith( - _$_Download value, $Res Function(_$_Download) then) = - __$$_DownloadCopyWithImpl<$Res>; +abstract class _$$DownloadImplCopyWith<$Res> + implements $DownloadCopyWith<$Res> { + factory _$$DownloadImplCopyWith( + _$DownloadImpl value, $Res Function(_$DownloadImpl) then) = + __$$DownloadImplCopyWithImpl<$Res>; @override @useResult $Res call( @@ -337,11 +338,11 @@ abstract class _$$_DownloadCopyWith<$Res> implements $DownloadCopyWith<$Res> { } /// @nodoc -class __$$_DownloadCopyWithImpl<$Res> - extends _$DownloadCopyWithImpl<$Res, _$_Download> - implements _$$_DownloadCopyWith<$Res> { - __$$_DownloadCopyWithImpl( - _$_Download _value, $Res Function(_$_Download) _then) +class __$$DownloadImplCopyWithImpl<$Res> + extends _$DownloadCopyWithImpl<$Res, _$DownloadImpl> + implements _$$DownloadImplCopyWith<$Res> { + __$$DownloadImplCopyWithImpl( + _$DownloadImpl _value, $Res Function(_$DownloadImpl) _then) : super(_value, _then); @pragma('vm:prefer-inline') @@ -356,7 +357,7 @@ class __$$_DownloadCopyWithImpl<$Res> Object? timeCreated = null, Object? allowCellular = null, }) { - return _then(_$_Download( + return _then(_$DownloadImpl( taskId: null == taskId ? _value.taskId : taskId // ignore: cast_nullable_to_non_nullable @@ -395,8 +396,8 @@ class __$$_DownloadCopyWithImpl<$Res> /// @nodoc -class _$_Download extends _Download { - const _$_Download( +class _$DownloadImpl extends _Download { + const _$DownloadImpl( {required this.taskId, required this.status, required this.progress, @@ -430,10 +431,10 @@ class _$_Download extends _Download { } @override - bool operator ==(dynamic other) { + bool operator ==(Object other) { return identical(this, other) || (other.runtimeType == runtimeType && - other is _$_Download && + other is _$DownloadImpl && (identical(other.taskId, taskId) || other.taskId == taskId) && (identical(other.status, status) || other.status == status) && (identical(other.progress, progress) || @@ -456,8 +457,8 @@ class _$_Download extends _Download { @JsonKey(ignore: true) @override @pragma('vm:prefer-inline') - _$$_DownloadCopyWith<_$_Download> get copyWith => - __$$_DownloadCopyWithImpl<_$_Download>(this, _$identity); + _$$DownloadImplCopyWith<_$DownloadImpl> get copyWith => + __$$DownloadImplCopyWithImpl<_$DownloadImpl>(this, _$identity); } abstract class _Download extends Download { @@ -469,7 +470,7 @@ abstract class _Download extends Download { required final String? filename, required final String savedDir, required final int timeCreated, - required final bool allowCellular}) = _$_Download; + required final bool allowCellular}) = _$DownloadImpl; const _Download._() : super._(); @override @@ -490,6 +491,6 @@ abstract class _Download extends Download { bool get allowCellular; @override @JsonKey(ignore: true) - _$$_DownloadCopyWith<_$_Download> get copyWith => + _$$DownloadImplCopyWith<_$DownloadImpl> get copyWith => throw _privateConstructorUsedError; } diff --git a/lib/services/download_service.g.dart b/lib/services/download_service.g.dart index 6a2026e..ba55104 100644 --- a/lib/services/download_service.g.dart +++ b/lib/services/download_service.g.dart @@ -6,7 +6,7 @@ part of 'download_service.dart'; // RiverpodGenerator // ************************************************************************** -String _$downloadServiceHash() => r'c72c49f980e307f3013467e76b6564d14a34a736'; +String _$downloadServiceHash() => r'd2aeed2c026de4dc7fa26b2331244b49e7e9f003'; /// See also [DownloadService]. @ProviderFor(DownloadService) @@ -22,4 +22,5 @@ final downloadServiceProvider = ); typedef _$DownloadService = Notifier; -// ignore_for_file: unnecessary_raw_strings, subtype_of_sealed_class, invalid_use_of_internal_member, do_not_use_environment, prefer_const_constructors, public_member_api_docs, avoid_private_typedef_functions +// ignore_for_file: type=lint +// ignore_for_file: subtype_of_sealed_class, invalid_use_of_internal_member, invalid_use_of_visible_for_testing_member diff --git a/lib/services/settings_service.g.dart b/lib/services/settings_service.g.dart index 3e23615..73a784d 100644 --- a/lib/services/settings_service.g.dart +++ b/lib/services/settings_service.g.dart @@ -6,7 +6,7 @@ part of 'settings_service.dart'; // RiverpodGenerator // ************************************************************************** -String _$settingsServiceHash() => r'85f2bd5eedc3f791fe03a6707748bc95277c6aaf'; +String _$settingsServiceHash() => r'b53814d7d06c5d0a7ac82f447ac510e59a9598f0'; /// See also [SettingsService]. @ProviderFor(SettingsService) @@ -22,4 +22,5 @@ final settingsServiceProvider = ); typedef _$SettingsService = Notifier; -// ignore_for_file: unnecessary_raw_strings, subtype_of_sealed_class, invalid_use_of_internal_member, do_not_use_environment, prefer_const_constructors, public_member_api_docs, avoid_private_typedef_functions +// ignore_for_file: type=lint +// ignore_for_file: subtype_of_sealed_class, invalid_use_of_internal_member, invalid_use_of_visible_for_testing_member diff --git a/lib/services/sync_service.g.dart b/lib/services/sync_service.g.dart index 8288d77..e9d1ef5 100644 --- a/lib/services/sync_service.g.dart +++ b/lib/services/sync_service.g.dart @@ -20,4 +20,5 @@ final syncServiceProvider = NotifierProvider.internal( ); typedef _$SyncService = Notifier; -// ignore_for_file: unnecessary_raw_strings, subtype_of_sealed_class, invalid_use_of_internal_member, do_not_use_environment, prefer_const_constructors, public_member_api_docs, avoid_private_typedef_functions +// ignore_for_file: type=lint +// ignore_for_file: subtype_of_sealed_class, invalid_use_of_internal_member, invalid_use_of_visible_for_testing_member diff --git a/lib/sources/subsonic/source.dart b/lib/sources/subsonic/source.dart index 15207ed..ada9277 100644 --- a/lib/sources/subsonic/source.dart +++ b/lib/sources/subsonic/source.dart @@ -144,7 +144,7 @@ class SubsonicSource implements MusicSource { return Uri.tryParse(res.xml .getElement('artistInfo2') ?.getElement(thumbnail ? 'smallImageUrl' : 'largeImageUrl') - ?.text ?? + ?.value ?? ''); } diff --git a/lib/state/audio.g.dart b/lib/state/audio.g.dart index 0c9b0fc..a373494 100644 --- a/lib/state/audio.g.dart +++ b/lib/state/audio.g.dart @@ -226,4 +226,5 @@ final lastAudioStateServiceProvider = ); typedef _$LastAudioStateService = AsyncNotifier; -// ignore_for_file: unnecessary_raw_strings, subtype_of_sealed_class, invalid_use_of_internal_member, do_not_use_environment, prefer_const_constructors, public_member_api_docs, avoid_private_typedef_functions +// ignore_for_file: type=lint +// ignore_for_file: subtype_of_sealed_class, invalid_use_of_internal_member, invalid_use_of_visible_for_testing_member diff --git a/lib/state/init.g.dart b/lib/state/init.g.dart index 7446889..f629bd5 100644 --- a/lib/state/init.g.dart +++ b/lib/state/init.g.dart @@ -94,4 +94,5 @@ final initProvider = FutureProvider.internal( ); typedef InitRef = FutureProviderRef; -// ignore_for_file: unnecessary_raw_strings, subtype_of_sealed_class, invalid_use_of_internal_member, do_not_use_environment, prefer_const_constructors, public_member_api_docs, avoid_private_typedef_functions +// ignore_for_file: type=lint +// ignore_for_file: subtype_of_sealed_class, invalid_use_of_internal_member, invalid_use_of_visible_for_testing_member diff --git a/lib/state/music.g.dart b/lib/state/music.g.dart index 454eb5c..f9691cd 100644 --- a/lib/state/music.g.dart +++ b/lib/state/music.g.dart @@ -29,8 +29,6 @@ class _SystemHash { } } -typedef ArtistRef = AutoDisposeStreamProviderRef; - /// See also [artist]. @ProviderFor(artist) const artistProvider = ArtistFamily(); @@ -77,10 +75,10 @@ class ArtistFamily extends Family> { class ArtistProvider extends AutoDisposeStreamProvider { /// See also [artist]. ArtistProvider( - this.id, - ) : super.internal( + String id, + ) : this._internal( (ref) => artist( - ref, + ref as ArtistRef, id, ), from: artistProvider, @@ -91,10 +89,44 @@ class ArtistProvider extends AutoDisposeStreamProvider { : _$artistHash, dependencies: ArtistFamily._dependencies, allTransitiveDependencies: ArtistFamily._allTransitiveDependencies, + id: id, ); + ArtistProvider._internal( + super._createNotifier, { + required super.name, + required super.dependencies, + required super.allTransitiveDependencies, + required super.debugGetCreateSourceHash, + required super.from, + required this.id, + }) : super.internal(); + final String id; + @override + Override overrideWith( + Stream Function(ArtistRef provider) create, + ) { + return ProviderOverride( + origin: this, + override: ArtistProvider._internal( + (ref) => create(ref as ArtistRef), + from: from, + name: null, + dependencies: null, + allTransitiveDependencies: null, + debugGetCreateSourceHash: null, + id: id, + ), + ); + } + + @override + AutoDisposeStreamProviderElement createElement() { + return _ArtistProviderElement(this); + } + @override bool operator ==(Object other) { return other is ArtistProvider && other.id == id; @@ -109,8 +141,20 @@ class ArtistProvider extends AutoDisposeStreamProvider { } } +mixin ArtistRef on AutoDisposeStreamProviderRef { + /// The parameter `id` of this provider. + String get id; +} + +class _ArtistProviderElement extends AutoDisposeStreamProviderElement + with ArtistRef { + _ArtistProviderElement(super.provider); + + @override + String get id => (origin as ArtistProvider).id; +} + String _$albumHash() => r'914f37fe8bc2d883de2548ce9411aa10e8a9868a'; -typedef AlbumRef = AutoDisposeStreamProviderRef; /// See also [album]. @ProviderFor(album) @@ -158,10 +202,10 @@ class AlbumFamily extends Family> { class AlbumProvider extends AutoDisposeStreamProvider { /// See also [album]. AlbumProvider( - this.id, - ) : super.internal( + String id, + ) : this._internal( (ref) => album( - ref, + ref as AlbumRef, id, ), from: albumProvider, @@ -172,10 +216,44 @@ class AlbumProvider extends AutoDisposeStreamProvider { : _$albumHash, dependencies: AlbumFamily._dependencies, allTransitiveDependencies: AlbumFamily._allTransitiveDependencies, + id: id, ); + AlbumProvider._internal( + super._createNotifier, { + required super.name, + required super.dependencies, + required super.allTransitiveDependencies, + required super.debugGetCreateSourceHash, + required super.from, + required this.id, + }) : super.internal(); + final String id; + @override + Override overrideWith( + Stream Function(AlbumRef provider) create, + ) { + return ProviderOverride( + origin: this, + override: AlbumProvider._internal( + (ref) => create(ref as AlbumRef), + from: from, + name: null, + dependencies: null, + allTransitiveDependencies: null, + debugGetCreateSourceHash: null, + id: id, + ), + ); + } + + @override + AutoDisposeStreamProviderElement createElement() { + return _AlbumProviderElement(this); + } + @override bool operator ==(Object other) { return other is AlbumProvider && other.id == id; @@ -190,10 +268,21 @@ class AlbumProvider extends AutoDisposeStreamProvider { } } +mixin AlbumRef on AutoDisposeStreamProviderRef { + /// The parameter `id` of this provider. + String get id; +} + +class _AlbumProviderElement extends AutoDisposeStreamProviderElement + with AlbumRef { + _AlbumProviderElement(super.provider); + + @override + String get id => (origin as AlbumProvider).id; +} + String _$albumDownloadStatusHash() => r'0b6c5f09f8327a624172d7ef33e1911c87b2cb60'; -typedef AlbumDownloadStatusRef - = AutoDisposeStreamProviderRef; /// See also [albumDownloadStatus]. @ProviderFor(albumDownloadStatus) @@ -242,10 +331,10 @@ class AlbumDownloadStatusProvider extends AutoDisposeStreamProvider { /// See also [albumDownloadStatus]. AlbumDownloadStatusProvider( - this.id, - ) : super.internal( + String id, + ) : this._internal( (ref) => albumDownloadStatus( - ref, + ref as AlbumDownloadStatusRef, id, ), from: albumDownloadStatusProvider, @@ -257,10 +346,44 @@ class AlbumDownloadStatusProvider dependencies: AlbumDownloadStatusFamily._dependencies, allTransitiveDependencies: AlbumDownloadStatusFamily._allTransitiveDependencies, + id: id, ); + AlbumDownloadStatusProvider._internal( + super._createNotifier, { + required super.name, + required super.dependencies, + required super.allTransitiveDependencies, + required super.debugGetCreateSourceHash, + required super.from, + required this.id, + }) : super.internal(); + final String id; + @override + Override overrideWith( + Stream Function(AlbumDownloadStatusRef provider) create, + ) { + return ProviderOverride( + origin: this, + override: AlbumDownloadStatusProvider._internal( + (ref) => create(ref as AlbumDownloadStatusRef), + from: from, + name: null, + dependencies: null, + allTransitiveDependencies: null, + debugGetCreateSourceHash: null, + id: id, + ), + ); + } + + @override + AutoDisposeStreamProviderElement createElement() { + return _AlbumDownloadStatusProviderElement(this); + } + @override bool operator ==(Object other) { return other is AlbumDownloadStatusProvider && other.id == id; @@ -275,10 +398,23 @@ class AlbumDownloadStatusProvider } } +mixin AlbumDownloadStatusRef + on AutoDisposeStreamProviderRef { + /// The parameter `id` of this provider. + String get id; +} + +class _AlbumDownloadStatusProviderElement + extends AutoDisposeStreamProviderElement + with AlbumDownloadStatusRef { + _AlbumDownloadStatusProviderElement(super.provider); + + @override + String get id => (origin as AlbumDownloadStatusProvider).id; +} + String _$playlistDownloadStatusHash() => r'd563e8746265b2022c59e70869d136cdf6c03ab9'; -typedef PlaylistDownloadStatusRef - = AutoDisposeStreamProviderRef; /// See also [playlistDownloadStatus]. @ProviderFor(playlistDownloadStatus) @@ -328,10 +464,10 @@ class PlaylistDownloadStatusProvider extends AutoDisposeStreamProvider { /// See also [playlistDownloadStatus]. PlaylistDownloadStatusProvider( - this.id, - ) : super.internal( + String id, + ) : this._internal( (ref) => playlistDownloadStatus( - ref, + ref as PlaylistDownloadStatusRef, id, ), from: playlistDownloadStatusProvider, @@ -343,10 +479,45 @@ class PlaylistDownloadStatusProvider dependencies: PlaylistDownloadStatusFamily._dependencies, allTransitiveDependencies: PlaylistDownloadStatusFamily._allTransitiveDependencies, + id: id, ); + PlaylistDownloadStatusProvider._internal( + super._createNotifier, { + required super.name, + required super.dependencies, + required super.allTransitiveDependencies, + required super.debugGetCreateSourceHash, + required super.from, + required this.id, + }) : super.internal(); + final String id; + @override + Override overrideWith( + Stream Function(PlaylistDownloadStatusRef provider) + create, + ) { + return ProviderOverride( + origin: this, + override: PlaylistDownloadStatusProvider._internal( + (ref) => create(ref as PlaylistDownloadStatusRef), + from: from, + name: null, + dependencies: null, + allTransitiveDependencies: null, + debugGetCreateSourceHash: null, + id: id, + ), + ); + } + + @override + AutoDisposeStreamProviderElement createElement() { + return _PlaylistDownloadStatusProviderElement(this); + } + @override bool operator ==(Object other) { return other is PlaylistDownloadStatusProvider && other.id == id; @@ -361,8 +532,22 @@ class PlaylistDownloadStatusProvider } } +mixin PlaylistDownloadStatusRef + on AutoDisposeStreamProviderRef { + /// The parameter `id` of this provider. + String get id; +} + +class _PlaylistDownloadStatusProviderElement + extends AutoDisposeStreamProviderElement + with PlaylistDownloadStatusRef { + _PlaylistDownloadStatusProviderElement(super.provider); + + @override + String get id => (origin as PlaylistDownloadStatusProvider).id; +} + String _$songHash() => r'bd8ac3b046180c9fa7676e437542d5afe4dcdb7d'; -typedef SongRef = AutoDisposeStreamProviderRef; /// See also [song]. @ProviderFor(song) @@ -410,10 +595,10 @@ class SongFamily extends Family> { class SongProvider extends AutoDisposeStreamProvider { /// See also [song]. SongProvider( - this.id, - ) : super.internal( + String id, + ) : this._internal( (ref) => song( - ref, + ref as SongRef, id, ), from: songProvider, @@ -422,10 +607,44 @@ class SongProvider extends AutoDisposeStreamProvider { const bool.fromEnvironment('dart.vm.product') ? null : _$songHash, dependencies: SongFamily._dependencies, allTransitiveDependencies: SongFamily._allTransitiveDependencies, + id: id, ); + SongProvider._internal( + super._createNotifier, { + required super.name, + required super.dependencies, + required super.allTransitiveDependencies, + required super.debugGetCreateSourceHash, + required super.from, + required this.id, + }) : super.internal(); + final String id; + @override + Override overrideWith( + Stream Function(SongRef provider) create, + ) { + return ProviderOverride( + origin: this, + override: SongProvider._internal( + (ref) => create(ref as SongRef), + from: from, + name: null, + dependencies: null, + allTransitiveDependencies: null, + debugGetCreateSourceHash: null, + id: id, + ), + ); + } + + @override + AutoDisposeStreamProviderElement createElement() { + return _SongProviderElement(this); + } + @override bool operator ==(Object other) { return other is SongProvider && other.id == id; @@ -440,8 +659,20 @@ class SongProvider extends AutoDisposeStreamProvider { } } +mixin SongRef on AutoDisposeStreamProviderRef { + /// The parameter `id` of this provider. + String get id; +} + +class _SongProviderElement extends AutoDisposeStreamProviderElement + with SongRef { + _SongProviderElement(super.provider); + + @override + String get id => (origin as SongProvider).id; +} + String _$albumSongsListHash() => r'dfc357b4c2b6a7dcc5e4701dc395c49ec8c8b88a'; -typedef AlbumSongsListRef = AutoDisposeFutureProviderRef>; /// See also [albumSongsList]. @ProviderFor(albumSongsList) @@ -492,11 +723,11 @@ class AlbumSongsListFamily extends Family>> { class AlbumSongsListProvider extends AutoDisposeFutureProvider> { /// See also [albumSongsList]. AlbumSongsListProvider( - this.id, - this.opt, - ) : super.internal( + String id, + ListQuery opt, + ) : this._internal( (ref) => albumSongsList( - ref, + ref as AlbumSongsListRef, id, opt, ), @@ -509,11 +740,48 @@ class AlbumSongsListProvider extends AutoDisposeFutureProvider> { dependencies: AlbumSongsListFamily._dependencies, allTransitiveDependencies: AlbumSongsListFamily._allTransitiveDependencies, + id: id, + opt: opt, ); + AlbumSongsListProvider._internal( + super._createNotifier, { + required super.name, + required super.dependencies, + required super.allTransitiveDependencies, + required super.debugGetCreateSourceHash, + required super.from, + required this.id, + required this.opt, + }) : super.internal(); + final String id; final ListQuery opt; + @override + Override overrideWith( + FutureOr> Function(AlbumSongsListRef provider) create, + ) { + return ProviderOverride( + origin: this, + override: AlbumSongsListProvider._internal( + (ref) => create(ref as AlbumSongsListRef), + from: from, + name: null, + dependencies: null, + allTransitiveDependencies: null, + debugGetCreateSourceHash: null, + id: id, + opt: opt, + ), + ); + } + + @override + AutoDisposeFutureProviderElement> createElement() { + return _AlbumSongsListProviderElement(this); + } + @override bool operator ==(Object other) { return other is AlbumSongsListProvider && @@ -531,8 +799,26 @@ class AlbumSongsListProvider extends AutoDisposeFutureProvider> { } } +mixin AlbumSongsListRef on AutoDisposeFutureProviderRef> { + /// The parameter `id` of this provider. + String get id; + + /// The parameter `opt` of this provider. + ListQuery get opt; +} + +class _AlbumSongsListProviderElement + extends AutoDisposeFutureProviderElement> + with AlbumSongsListRef { + _AlbumSongsListProviderElement(super.provider); + + @override + String get id => (origin as AlbumSongsListProvider).id; + @override + ListQuery get opt => (origin as AlbumSongsListProvider).opt; +} + String _$songsByAlbumListHash() => r'd6ed7fd9d8ceb3c5743b8c5538c7ffd50d2a8284'; -typedef SongsByAlbumListRef = AutoDisposeFutureProviderRef>; /// See also [songsByAlbumList]. @ProviderFor(songsByAlbumList) @@ -580,10 +866,10 @@ class SongsByAlbumListFamily extends Family>> { class SongsByAlbumListProvider extends AutoDisposeFutureProvider> { /// See also [songsByAlbumList]. SongsByAlbumListProvider( - this.opt, - ) : super.internal( + ListQuery opt, + ) : this._internal( (ref) => songsByAlbumList( - ref, + ref as SongsByAlbumListRef, opt, ), from: songsByAlbumListProvider, @@ -595,10 +881,44 @@ class SongsByAlbumListProvider extends AutoDisposeFutureProvider> { dependencies: SongsByAlbumListFamily._dependencies, allTransitiveDependencies: SongsByAlbumListFamily._allTransitiveDependencies, + opt: opt, ); + SongsByAlbumListProvider._internal( + super._createNotifier, { + required super.name, + required super.dependencies, + required super.allTransitiveDependencies, + required super.debugGetCreateSourceHash, + required super.from, + required this.opt, + }) : super.internal(); + final ListQuery opt; + @override + Override overrideWith( + FutureOr> Function(SongsByAlbumListRef provider) create, + ) { + return ProviderOverride( + origin: this, + override: SongsByAlbumListProvider._internal( + (ref) => create(ref as SongsByAlbumListRef), + from: from, + name: null, + dependencies: null, + allTransitiveDependencies: null, + debugGetCreateSourceHash: null, + opt: opt, + ), + ); + } + + @override + AutoDisposeFutureProviderElement> createElement() { + return _SongsByAlbumListProviderElement(this); + } + @override bool operator ==(Object other) { return other is SongsByAlbumListProvider && other.opt == opt; @@ -613,8 +933,21 @@ class SongsByAlbumListProvider extends AutoDisposeFutureProvider> { } } +mixin SongsByAlbumListRef on AutoDisposeFutureProviderRef> { + /// The parameter `opt` of this provider. + ListQuery get opt; +} + +class _SongsByAlbumListProviderElement + extends AutoDisposeFutureProviderElement> + with SongsByAlbumListRef { + _SongsByAlbumListProviderElement(super.provider); + + @override + ListQuery get opt => (origin as SongsByAlbumListProvider).opt; +} + String _$playlistHash() => r'df0c8441c67c487155574caeeb11f4cdfe25ed31'; -typedef PlaylistRef = AutoDisposeStreamProviderRef; /// See also [playlist]. @ProviderFor(playlist) @@ -662,10 +995,10 @@ class PlaylistFamily extends Family> { class PlaylistProvider extends AutoDisposeStreamProvider { /// See also [playlist]. PlaylistProvider( - this.id, - ) : super.internal( + String id, + ) : this._internal( (ref) => playlist( - ref, + ref as PlaylistRef, id, ), from: playlistProvider, @@ -676,10 +1009,44 @@ class PlaylistProvider extends AutoDisposeStreamProvider { : _$playlistHash, dependencies: PlaylistFamily._dependencies, allTransitiveDependencies: PlaylistFamily._allTransitiveDependencies, + id: id, ); + PlaylistProvider._internal( + super._createNotifier, { + required super.name, + required super.dependencies, + required super.allTransitiveDependencies, + required super.debugGetCreateSourceHash, + required super.from, + required this.id, + }) : super.internal(); + final String id; + @override + Override overrideWith( + Stream Function(PlaylistRef provider) create, + ) { + return ProviderOverride( + origin: this, + override: PlaylistProvider._internal( + (ref) => create(ref as PlaylistRef), + from: from, + name: null, + dependencies: null, + allTransitiveDependencies: null, + debugGetCreateSourceHash: null, + id: id, + ), + ); + } + + @override + AutoDisposeStreamProviderElement createElement() { + return _PlaylistProviderElement(this); + } + @override bool operator ==(Object other) { return other is PlaylistProvider && other.id == id; @@ -694,8 +1061,20 @@ class PlaylistProvider extends AutoDisposeStreamProvider { } } +mixin PlaylistRef on AutoDisposeStreamProviderRef { + /// The parameter `id` of this provider. + String get id; +} + +class _PlaylistProviderElement + extends AutoDisposeStreamProviderElement with PlaylistRef { + _PlaylistProviderElement(super.provider); + + @override + String get id => (origin as PlaylistProvider).id; +} + String _$playlistSongsListHash() => r'c3593829c6c91dc6958df6dc4cb6e89e3e7647a5'; -typedef PlaylistSongsListRef = AutoDisposeFutureProviderRef>; /// See also [playlistSongsList]. @ProviderFor(playlistSongsList) @@ -746,11 +1125,11 @@ class PlaylistSongsListFamily extends Family>> { class PlaylistSongsListProvider extends AutoDisposeFutureProvider> { /// See also [playlistSongsList]. PlaylistSongsListProvider( - this.id, - this.opt, - ) : super.internal( + String id, + ListQuery opt, + ) : this._internal( (ref) => playlistSongsList( - ref, + ref as PlaylistSongsListRef, id, opt, ), @@ -763,11 +1142,48 @@ class PlaylistSongsListProvider extends AutoDisposeFutureProvider> { dependencies: PlaylistSongsListFamily._dependencies, allTransitiveDependencies: PlaylistSongsListFamily._allTransitiveDependencies, + id: id, + opt: opt, ); + PlaylistSongsListProvider._internal( + super._createNotifier, { + required super.name, + required super.dependencies, + required super.allTransitiveDependencies, + required super.debugGetCreateSourceHash, + required super.from, + required this.id, + required this.opt, + }) : super.internal(); + final String id; final ListQuery opt; + @override + Override overrideWith( + FutureOr> Function(PlaylistSongsListRef provider) create, + ) { + return ProviderOverride( + origin: this, + override: PlaylistSongsListProvider._internal( + (ref) => create(ref as PlaylistSongsListRef), + from: from, + name: null, + dependencies: null, + allTransitiveDependencies: null, + debugGetCreateSourceHash: null, + id: id, + opt: opt, + ), + ); + } + + @override + AutoDisposeFutureProviderElement> createElement() { + return _PlaylistSongsListProviderElement(this); + } + @override bool operator ==(Object other) { return other is PlaylistSongsListProvider && @@ -785,8 +1201,26 @@ class PlaylistSongsListProvider extends AutoDisposeFutureProvider> { } } +mixin PlaylistSongsListRef on AutoDisposeFutureProviderRef> { + /// The parameter `id` of this provider. + String get id; + + /// The parameter `opt` of this provider. + ListQuery get opt; +} + +class _PlaylistSongsListProviderElement + extends AutoDisposeFutureProviderElement> + with PlaylistSongsListRef { + _PlaylistSongsListProviderElement(super.provider); + + @override + String get id => (origin as PlaylistSongsListProvider).id; + @override + ListQuery get opt => (origin as PlaylistSongsListProvider).opt; +} + String _$albumsInIdsHash() => r'089ceafa122e1b3ce87c216bf3650cae5f656bdc'; -typedef AlbumsInIdsRef = AutoDisposeFutureProviderRef>; /// See also [albumsInIds]. @ProviderFor(albumsInIds) @@ -834,10 +1268,10 @@ class AlbumsInIdsFamily extends Family>> { class AlbumsInIdsProvider extends AutoDisposeFutureProvider> { /// See also [albumsInIds]. AlbumsInIdsProvider( - this.ids, - ) : super.internal( + IList ids, + ) : this._internal( (ref) => albumsInIds( - ref, + ref as AlbumsInIdsRef, ids, ), from: albumsInIdsProvider, @@ -849,10 +1283,44 @@ class AlbumsInIdsProvider extends AutoDisposeFutureProvider> { dependencies: AlbumsInIdsFamily._dependencies, allTransitiveDependencies: AlbumsInIdsFamily._allTransitiveDependencies, + ids: ids, ); + AlbumsInIdsProvider._internal( + super._createNotifier, { + required super.name, + required super.dependencies, + required super.allTransitiveDependencies, + required super.debugGetCreateSourceHash, + required super.from, + required this.ids, + }) : super.internal(); + final IList ids; + @override + Override overrideWith( + FutureOr> Function(AlbumsInIdsRef provider) create, + ) { + return ProviderOverride( + origin: this, + override: AlbumsInIdsProvider._internal( + (ref) => create(ref as AlbumsInIdsRef), + from: from, + name: null, + dependencies: null, + allTransitiveDependencies: null, + debugGetCreateSourceHash: null, + ids: ids, + ), + ); + } + + @override + AutoDisposeFutureProviderElement> createElement() { + return _AlbumsInIdsProviderElement(this); + } + @override bool operator ==(Object other) { return other is AlbumsInIdsProvider && other.ids == ids; @@ -867,8 +1335,20 @@ class AlbumsInIdsProvider extends AutoDisposeFutureProvider> { } } +mixin AlbumsInIdsRef on AutoDisposeFutureProviderRef> { + /// The parameter `ids` of this provider. + IList get ids; +} + +class _AlbumsInIdsProviderElement + extends AutoDisposeFutureProviderElement> with AlbumsInIdsRef { + _AlbumsInIdsProviderElement(super.provider); + + @override + IList get ids => (origin as AlbumsInIdsProvider).ids; +} + String _$albumsByArtistIdHash() => r'e9a5c9255b6c7b6cfb22f4a4bacc4e518787465d'; -typedef AlbumsByArtistIdRef = AutoDisposeStreamProviderRef>; /// See also [albumsByArtistId]. @ProviderFor(albumsByArtistId) @@ -916,10 +1396,10 @@ class AlbumsByArtistIdFamily extends Family>> { class AlbumsByArtistIdProvider extends AutoDisposeStreamProvider> { /// See also [albumsByArtistId]. AlbumsByArtistIdProvider( - this.id, - ) : super.internal( + String id, + ) : this._internal( (ref) => albumsByArtistId( - ref, + ref as AlbumsByArtistIdRef, id, ), from: albumsByArtistIdProvider, @@ -931,10 +1411,44 @@ class AlbumsByArtistIdProvider extends AutoDisposeStreamProvider> { dependencies: AlbumsByArtistIdFamily._dependencies, allTransitiveDependencies: AlbumsByArtistIdFamily._allTransitiveDependencies, + id: id, ); + AlbumsByArtistIdProvider._internal( + super._createNotifier, { + required super.name, + required super.dependencies, + required super.allTransitiveDependencies, + required super.debugGetCreateSourceHash, + required super.from, + required this.id, + }) : super.internal(); + final String id; + @override + Override overrideWith( + Stream> Function(AlbumsByArtistIdRef provider) create, + ) { + return ProviderOverride( + origin: this, + override: AlbumsByArtistIdProvider._internal( + (ref) => create(ref as AlbumsByArtistIdRef), + from: from, + name: null, + dependencies: null, + allTransitiveDependencies: null, + debugGetCreateSourceHash: null, + id: id, + ), + ); + } + + @override + AutoDisposeStreamProviderElement> createElement() { + return _AlbumsByArtistIdProviderElement(this); + } + @override bool operator ==(Object other) { return other is AlbumsByArtistIdProvider && other.id == id; @@ -949,8 +1463,21 @@ class AlbumsByArtistIdProvider extends AutoDisposeStreamProvider> { } } +mixin AlbumsByArtistIdRef on AutoDisposeStreamProviderRef> { + /// The parameter `id` of this provider. + String get id; +} + +class _AlbumsByArtistIdProviderElement + extends AutoDisposeStreamProviderElement> + with AlbumsByArtistIdRef { + _AlbumsByArtistIdProviderElement(super.provider); + + @override + String get id => (origin as AlbumsByArtistIdProvider).id; +} + String _$albumGenresHash() => r'17ba64391a678a4eb88017d782a843eeb92b2049'; -typedef AlbumGenresRef = AutoDisposeStreamProviderRef>; /// See also [albumGenres]. @ProviderFor(albumGenres) @@ -998,10 +1525,10 @@ class AlbumGenresFamily extends Family>> { class AlbumGenresProvider extends AutoDisposeStreamProvider> { /// See also [albumGenres]. AlbumGenresProvider( - this.page, - ) : super.internal( + Pagination page, + ) : this._internal( (ref) => albumGenres( - ref, + ref as AlbumGenresRef, page, ), from: albumGenresProvider, @@ -1013,10 +1540,44 @@ class AlbumGenresProvider extends AutoDisposeStreamProvider> { dependencies: AlbumGenresFamily._dependencies, allTransitiveDependencies: AlbumGenresFamily._allTransitiveDependencies, + page: page, ); + AlbumGenresProvider._internal( + super._createNotifier, { + required super.name, + required super.dependencies, + required super.allTransitiveDependencies, + required super.debugGetCreateSourceHash, + required super.from, + required this.page, + }) : super.internal(); + final Pagination page; + @override + Override overrideWith( + Stream> Function(AlbumGenresRef provider) create, + ) { + return ProviderOverride( + origin: this, + override: AlbumGenresProvider._internal( + (ref) => create(ref as AlbumGenresRef), + from: from, + name: null, + dependencies: null, + allTransitiveDependencies: null, + debugGetCreateSourceHash: null, + page: page, + ), + ); + } + + @override + AutoDisposeStreamProviderElement> createElement() { + return _AlbumGenresProviderElement(this); + } + @override bool operator ==(Object other) { return other is AlbumGenresProvider && other.page == page; @@ -1031,8 +1592,21 @@ class AlbumGenresProvider extends AutoDisposeStreamProvider> { } } +mixin AlbumGenresRef on AutoDisposeStreamProviderRef> { + /// The parameter `page` of this provider. + Pagination get page; +} + +class _AlbumGenresProviderElement + extends AutoDisposeStreamProviderElement> + with AlbumGenresRef { + _AlbumGenresProviderElement(super.provider); + + @override + Pagination get page => (origin as AlbumGenresProvider).page; +} + String _$albumsByGenreHash() => r'd35cb85a50df93b7f50c28c934ea182b69534b8b'; -typedef AlbumsByGenreRef = AutoDisposeStreamProviderRef>; /// See also [albumsByGenre]. @ProviderFor(albumsByGenre) @@ -1083,11 +1657,11 @@ class AlbumsByGenreFamily extends Family>> { class AlbumsByGenreProvider extends AutoDisposeStreamProvider> { /// See also [albumsByGenre]. AlbumsByGenreProvider( - this.genre, - this.page, - ) : super.internal( + String genre, + Pagination page, + ) : this._internal( (ref) => albumsByGenre( - ref, + ref as AlbumsByGenreRef, genre, page, ), @@ -1100,11 +1674,48 @@ class AlbumsByGenreProvider extends AutoDisposeStreamProvider> { dependencies: AlbumsByGenreFamily._dependencies, allTransitiveDependencies: AlbumsByGenreFamily._allTransitiveDependencies, + genre: genre, + page: page, ); + AlbumsByGenreProvider._internal( + super._createNotifier, { + required super.name, + required super.dependencies, + required super.allTransitiveDependencies, + required super.debugGetCreateSourceHash, + required super.from, + required this.genre, + required this.page, + }) : super.internal(); + final String genre; final Pagination page; + @override + Override overrideWith( + Stream> Function(AlbumsByGenreRef provider) create, + ) { + return ProviderOverride( + origin: this, + override: AlbumsByGenreProvider._internal( + (ref) => create(ref as AlbumsByGenreRef), + from: from, + name: null, + dependencies: null, + allTransitiveDependencies: null, + debugGetCreateSourceHash: null, + genre: genre, + page: page, + ), + ); + } + + @override + AutoDisposeStreamProviderElement> createElement() { + return _AlbumsByGenreProviderElement(this); + } + @override bool operator ==(Object other) { return other is AlbumsByGenreProvider && @@ -1122,8 +1733,26 @@ class AlbumsByGenreProvider extends AutoDisposeStreamProvider> { } } +mixin AlbumsByGenreRef on AutoDisposeStreamProviderRef> { + /// The parameter `genre` of this provider. + String get genre; + + /// The parameter `page` of this provider. + Pagination get page; +} + +class _AlbumsByGenreProviderElement + extends AutoDisposeStreamProviderElement> + with AlbumsByGenreRef { + _AlbumsByGenreProviderElement(super.provider); + + @override + String get genre => (origin as AlbumsByGenreProvider).genre; + @override + Pagination get page => (origin as AlbumsByGenreProvider).page; +} + String _$songsByGenreCountHash() => r'408bc1d82a6dae29e7b9a85fbf6988ba854551f7'; -typedef SongsByGenreCountRef = AutoDisposeStreamProviderRef; /// See also [songsByGenreCount]. @ProviderFor(songsByGenreCount) @@ -1171,10 +1800,10 @@ class SongsByGenreCountFamily extends Family> { class SongsByGenreCountProvider extends AutoDisposeStreamProvider { /// See also [songsByGenreCount]. SongsByGenreCountProvider( - this.genre, - ) : super.internal( + String genre, + ) : this._internal( (ref) => songsByGenreCount( - ref, + ref as SongsByGenreCountRef, genre, ), from: songsByGenreCountProvider, @@ -1186,10 +1815,44 @@ class SongsByGenreCountProvider extends AutoDisposeStreamProvider { dependencies: SongsByGenreCountFamily._dependencies, allTransitiveDependencies: SongsByGenreCountFamily._allTransitiveDependencies, + genre: genre, ); + SongsByGenreCountProvider._internal( + super._createNotifier, { + required super.name, + required super.dependencies, + required super.allTransitiveDependencies, + required super.debugGetCreateSourceHash, + required super.from, + required this.genre, + }) : super.internal(); + final String genre; + @override + Override overrideWith( + Stream Function(SongsByGenreCountRef provider) create, + ) { + return ProviderOverride( + origin: this, + override: SongsByGenreCountProvider._internal( + (ref) => create(ref as SongsByGenreCountRef), + from: from, + name: null, + dependencies: null, + allTransitiveDependencies: null, + debugGetCreateSourceHash: null, + genre: genre, + ), + ); + } + + @override + AutoDisposeStreamProviderElement createElement() { + return _SongsByGenreCountProviderElement(this); + } + @override bool operator ==(Object other) { return other is SongsByGenreCountProvider && other.genre == genre; @@ -1203,4 +1866,18 @@ class SongsByGenreCountProvider extends AutoDisposeStreamProvider { return _SystemHash.finish(hash); } } -// ignore_for_file: unnecessary_raw_strings, subtype_of_sealed_class, invalid_use_of_internal_member, do_not_use_environment, prefer_const_constructors, public_member_api_docs, avoid_private_typedef_functions + +mixin SongsByGenreCountRef on AutoDisposeStreamProviderRef { + /// The parameter `genre` of this provider. + String get genre; +} + +class _SongsByGenreCountProviderElement + extends AutoDisposeStreamProviderElement with SongsByGenreCountRef { + _SongsByGenreCountProviderElement(super.provider); + + @override + String get genre => (origin as SongsByGenreCountProvider).genre; +} +// ignore_for_file: type=lint +// ignore_for_file: subtype_of_sealed_class, invalid_use_of_internal_member, invalid_use_of_visible_for_testing_member diff --git a/lib/state/settings.g.dart b/lib/state/settings.g.dart index a8681d8..943e6be 100644 --- a/lib/state/settings.g.dart +++ b/lib/state/settings.g.dart @@ -76,4 +76,5 @@ final offlineModeProvider = NotifierProvider.internal( ); typedef _$OfflineMode = Notifier; -// ignore_for_file: unnecessary_raw_strings, subtype_of_sealed_class, invalid_use_of_internal_member, do_not_use_environment, prefer_const_constructors, public_member_api_docs, avoid_private_typedef_functions +// ignore_for_file: type=lint +// ignore_for_file: subtype_of_sealed_class, invalid_use_of_internal_member, invalid_use_of_visible_for_testing_member diff --git a/lib/state/theme.dart b/lib/state/theme.dart index da78ae8..407e815 100644 --- a/lib/state/theme.dart +++ b/lib/state/theme.dart @@ -87,7 +87,6 @@ ColorTheme _colorTheme(_ColorThemeRef ref, Palette palette) { final colorScheme = ColorScheme.fromSeed( brightness: Brightness.dark, seedColor: background?.color ?? Colors.purple[800]!, - background: background?.color, primaryContainer: primary?.color, onPrimaryContainer: primary?.bodyTextColor, secondaryContainer: secondary?.color, @@ -96,8 +95,8 @@ ColorTheme _colorTheme(_ColorThemeRef ref, Palette palette) { surfaceTint: vibrant?.color, ); - final hsv = HSVColor.fromColor(colorScheme.background); - final hsl = HSLColor.fromColor(colorScheme.background); + final hsv = HSVColor.fromColor(colorScheme.surface); + final hsl = HSLColor.fromColor(colorScheme.surface); return base.copyWith( theme: ThemeData( @@ -106,7 +105,7 @@ ColorTheme _colorTheme(_ColorThemeRef ref, Palette palette) { brightness: base.theme.brightness, cardTheme: base.theme.cardTheme, ), - gradientHigh: colorScheme.background, + gradientHigh: colorScheme.surface, darkBackground: hsv.withValue(kDarkBackgroundValue).toColor(), darkerBackground: hsl.withLightness(kDarkerBackgroundLightness).toColor(), onDarkerBackground: @@ -128,13 +127,13 @@ ColorTheme baseTheme(BaseThemeRef ref) { ), ); - final hsv = HSVColor.fromColor(theme.colorScheme.background); - final hsl = HSLColor.fromColor(theme.colorScheme.background); + final hsv = HSVColor.fromColor(theme.colorScheme.surface); + final hsl = HSLColor.fromColor(theme.colorScheme.surface); return ColorTheme( theme: theme, - gradientHigh: theme.colorScheme.background, - gradientLow: HSLColor.fromColor(theme.colorScheme.background) + gradientHigh: theme.colorScheme.surface, + gradientLow: HSLColor.fromColor(theme.colorScheme.surface) .withLightness(0.06) .toColor(), darkBackground: hsv.withValue(kDarkBackgroundValue).toColor(), diff --git a/lib/state/theme.g.dart b/lib/state/theme.g.dart index 1fdb0bf..3886f38 100644 --- a/lib/state/theme.g.dart +++ b/lib/state/theme.g.dart @@ -6,7 +6,7 @@ part of 'theme.dart'; // RiverpodGenerator // ************************************************************************** -String _$colorThemeHash() => r'f5cc23cb5e2af379c02ae4b9756df72f9f6da5e6'; +String _$colorThemeHash() => r'37d4eb17395341800b67f4f257c2cc49bf3dc91b'; /// Copied from Dart SDK class _SystemHash { @@ -29,8 +29,6 @@ class _SystemHash { } } -typedef _ColorThemeRef = AutoDisposeProviderRef; - /// See also [_colorTheme]. @ProviderFor(_colorTheme) const _colorThemeProvider = _ColorThemeFamily(); @@ -77,10 +75,10 @@ class _ColorThemeFamily extends Family { class _ColorThemeProvider extends AutoDisposeProvider { /// See also [_colorTheme]. _ColorThemeProvider( - this.palette, - ) : super.internal( + Palette palette, + ) : this._internal( (ref) => _colorTheme( - ref, + ref as _ColorThemeRef, palette, ), from: _colorThemeProvider, @@ -92,10 +90,44 @@ class _ColorThemeProvider extends AutoDisposeProvider { dependencies: _ColorThemeFamily._dependencies, allTransitiveDependencies: _ColorThemeFamily._allTransitiveDependencies, + palette: palette, ); + _ColorThemeProvider._internal( + super._createNotifier, { + required super.name, + required super.dependencies, + required super.allTransitiveDependencies, + required super.debugGetCreateSourceHash, + required super.from, + required this.palette, + }) : super.internal(); + final Palette palette; + @override + Override overrideWith( + ColorTheme Function(_ColorThemeRef provider) create, + ) { + return ProviderOverride( + origin: this, + override: _ColorThemeProvider._internal( + (ref) => create(ref as _ColorThemeRef), + from: from, + name: null, + dependencies: null, + allTransitiveDependencies: null, + debugGetCreateSourceHash: null, + palette: palette, + ), + ); + } + + @override + AutoDisposeProviderElement createElement() { + return _ColorThemeProviderElement(this); + } + @override bool operator ==(Object other) { return other is _ColorThemeProvider && other.palette == palette; @@ -110,7 +142,20 @@ class _ColorThemeProvider extends AutoDisposeProvider { } } -String _$baseThemeHash() => r'317a5ef77def208357a54b7938ef3d91666fce70'; +mixin _ColorThemeRef on AutoDisposeProviderRef { + /// The parameter `palette` of this provider. + Palette get palette; +} + +class _ColorThemeProviderElement extends AutoDisposeProviderElement + with _ColorThemeRef { + _ColorThemeProviderElement(super.provider); + + @override + Palette get palette => (origin as _ColorThemeProvider).palette; +} + +String _$baseThemeHash() => r'489ea7dcf66a57e6eda300c75d8af5fcaef85e8e'; /// See also [baseTheme]. @ProviderFor(baseTheme) @@ -125,7 +170,6 @@ final baseThemeProvider = AutoDisposeProvider.internal( typedef BaseThemeRef = AutoDisposeProviderRef; String _$albumArtPaletteHash() => r'8130b954ee3c67f53207593d4ed3dfbffb00c95d'; -typedef AlbumArtPaletteRef = AutoDisposeFutureProviderRef; /// See also [albumArtPalette]. @ProviderFor(albumArtPalette) @@ -173,10 +217,10 @@ class AlbumArtPaletteFamily extends Family> { class AlbumArtPaletteProvider extends AutoDisposeFutureProvider { /// See also [albumArtPalette]. AlbumArtPaletteProvider( - this.id, - ) : super.internal( + String id, + ) : this._internal( (ref) => albumArtPalette( - ref, + ref as AlbumArtPaletteRef, id, ), from: albumArtPaletteProvider, @@ -188,10 +232,44 @@ class AlbumArtPaletteProvider extends AutoDisposeFutureProvider { dependencies: AlbumArtPaletteFamily._dependencies, allTransitiveDependencies: AlbumArtPaletteFamily._allTransitiveDependencies, + id: id, ); + AlbumArtPaletteProvider._internal( + super._createNotifier, { + required super.name, + required super.dependencies, + required super.allTransitiveDependencies, + required super.debugGetCreateSourceHash, + required super.from, + required this.id, + }) : super.internal(); + final String id; + @override + Override overrideWith( + FutureOr Function(AlbumArtPaletteRef provider) create, + ) { + return ProviderOverride( + origin: this, + override: AlbumArtPaletteProvider._internal( + (ref) => create(ref as AlbumArtPaletteRef), + from: from, + name: null, + dependencies: null, + allTransitiveDependencies: null, + debugGetCreateSourceHash: null, + id: id, + ), + ); + } + + @override + AutoDisposeFutureProviderElement createElement() { + return _AlbumArtPaletteProviderElement(this); + } + @override bool operator ==(Object other) { return other is AlbumArtPaletteProvider && other.id == id; @@ -206,9 +284,21 @@ class AlbumArtPaletteProvider extends AutoDisposeFutureProvider { } } +mixin AlbumArtPaletteRef on AutoDisposeFutureProviderRef { + /// The parameter `id` of this provider. + String get id; +} + +class _AlbumArtPaletteProviderElement + extends AutoDisposeFutureProviderElement with AlbumArtPaletteRef { + _AlbumArtPaletteProviderElement(super.provider); + + @override + String get id => (origin as AlbumArtPaletteProvider).id; +} + String _$playlistArtPaletteHash() => r'6bc015688f354ea8d91dde86e2a7191ef1ef6496'; -typedef PlaylistArtPaletteRef = AutoDisposeFutureProviderRef; /// See also [playlistArtPalette]. @ProviderFor(playlistArtPalette) @@ -256,10 +346,10 @@ class PlaylistArtPaletteFamily extends Family> { class PlaylistArtPaletteProvider extends AutoDisposeFutureProvider { /// See also [playlistArtPalette]. PlaylistArtPaletteProvider( - this.id, - ) : super.internal( + String id, + ) : this._internal( (ref) => playlistArtPalette( - ref, + ref as PlaylistArtPaletteRef, id, ), from: playlistArtPaletteProvider, @@ -271,10 +361,44 @@ class PlaylistArtPaletteProvider extends AutoDisposeFutureProvider { dependencies: PlaylistArtPaletteFamily._dependencies, allTransitiveDependencies: PlaylistArtPaletteFamily._allTransitiveDependencies, + id: id, ); + PlaylistArtPaletteProvider._internal( + super._createNotifier, { + required super.name, + required super.dependencies, + required super.allTransitiveDependencies, + required super.debugGetCreateSourceHash, + required super.from, + required this.id, + }) : super.internal(); + final String id; + @override + Override overrideWith( + FutureOr Function(PlaylistArtPaletteRef provider) create, + ) { + return ProviderOverride( + origin: this, + override: PlaylistArtPaletteProvider._internal( + (ref) => create(ref as PlaylistArtPaletteRef), + from: from, + name: null, + dependencies: null, + allTransitiveDependencies: null, + debugGetCreateSourceHash: null, + id: id, + ), + ); + } + + @override + AutoDisposeFutureProviderElement createElement() { + return _PlaylistArtPaletteProviderElement(this); + } + @override bool operator ==(Object other) { return other is PlaylistArtPaletteProvider && other.id == id; @@ -289,6 +413,20 @@ class PlaylistArtPaletteProvider extends AutoDisposeFutureProvider { } } +mixin PlaylistArtPaletteRef on AutoDisposeFutureProviderRef { + /// The parameter `id` of this provider. + String get id; +} + +class _PlaylistArtPaletteProviderElement + extends AutoDisposeFutureProviderElement + with PlaylistArtPaletteRef { + _PlaylistArtPaletteProviderElement(super.provider); + + @override + String get id => (origin as PlaylistArtPaletteProvider).id; +} + String _$mediaItemPaletteHash() => r'2f2744aa735c6056919197c283a367714d7e04e4'; /// See also [mediaItemPalette]. @@ -320,7 +458,6 @@ final mediaItemThemeProvider = AutoDisposeFutureProvider.internal( typedef MediaItemThemeRef = AutoDisposeFutureProviderRef; String _$albumArtThemeHash() => r'd3ee71b2df856f1763ec925e158ae2e0f613b9e0'; -typedef AlbumArtThemeRef = AutoDisposeFutureProviderRef; /// See also [albumArtTheme]. @ProviderFor(albumArtTheme) @@ -368,10 +505,10 @@ class AlbumArtThemeFamily extends Family> { class AlbumArtThemeProvider extends AutoDisposeFutureProvider { /// See also [albumArtTheme]. AlbumArtThemeProvider( - this.id, - ) : super.internal( + String id, + ) : this._internal( (ref) => albumArtTheme( - ref, + ref as AlbumArtThemeRef, id, ), from: albumArtThemeProvider, @@ -383,10 +520,44 @@ class AlbumArtThemeProvider extends AutoDisposeFutureProvider { dependencies: AlbumArtThemeFamily._dependencies, allTransitiveDependencies: AlbumArtThemeFamily._allTransitiveDependencies, + id: id, ); + AlbumArtThemeProvider._internal( + super._createNotifier, { + required super.name, + required super.dependencies, + required super.allTransitiveDependencies, + required super.debugGetCreateSourceHash, + required super.from, + required this.id, + }) : super.internal(); + final String id; + @override + Override overrideWith( + FutureOr Function(AlbumArtThemeRef provider) create, + ) { + return ProviderOverride( + origin: this, + override: AlbumArtThemeProvider._internal( + (ref) => create(ref as AlbumArtThemeRef), + from: from, + name: null, + dependencies: null, + allTransitiveDependencies: null, + debugGetCreateSourceHash: null, + id: id, + ), + ); + } + + @override + AutoDisposeFutureProviderElement createElement() { + return _AlbumArtThemeProviderElement(this); + } + @override bool operator ==(Object other) { return other is AlbumArtThemeProvider && other.id == id; @@ -401,8 +572,20 @@ class AlbumArtThemeProvider extends AutoDisposeFutureProvider { } } +mixin AlbumArtThemeRef on AutoDisposeFutureProviderRef { + /// The parameter `id` of this provider. + String get id; +} + +class _AlbumArtThemeProviderElement + extends AutoDisposeFutureProviderElement with AlbumArtThemeRef { + _AlbumArtThemeProviderElement(super.provider); + + @override + String get id => (origin as AlbumArtThemeProvider).id; +} + String _$playlistArtThemeHash() => r'1629552e1f3aa2a1e7d223ac1e078893042e5e3b'; -typedef PlaylistArtThemeRef = AutoDisposeFutureProviderRef; /// See also [playlistArtTheme]. @ProviderFor(playlistArtTheme) @@ -450,10 +633,10 @@ class PlaylistArtThemeFamily extends Family> { class PlaylistArtThemeProvider extends AutoDisposeFutureProvider { /// See also [playlistArtTheme]. PlaylistArtThemeProvider( - this.id, - ) : super.internal( + String id, + ) : this._internal( (ref) => playlistArtTheme( - ref, + ref as PlaylistArtThemeRef, id, ), from: playlistArtThemeProvider, @@ -465,10 +648,44 @@ class PlaylistArtThemeProvider extends AutoDisposeFutureProvider { dependencies: PlaylistArtThemeFamily._dependencies, allTransitiveDependencies: PlaylistArtThemeFamily._allTransitiveDependencies, + id: id, ); + PlaylistArtThemeProvider._internal( + super._createNotifier, { + required super.name, + required super.dependencies, + required super.allTransitiveDependencies, + required super.debugGetCreateSourceHash, + required super.from, + required this.id, + }) : super.internal(); + final String id; + @override + Override overrideWith( + FutureOr Function(PlaylistArtThemeRef provider) create, + ) { + return ProviderOverride( + origin: this, + override: PlaylistArtThemeProvider._internal( + (ref) => create(ref as PlaylistArtThemeRef), + from: from, + name: null, + dependencies: null, + allTransitiveDependencies: null, + debugGetCreateSourceHash: null, + id: id, + ), + ); + } + + @override + AutoDisposeFutureProviderElement createElement() { + return _PlaylistArtThemeProviderElement(this); + } + @override bool operator ==(Object other) { return other is PlaylistArtThemeProvider && other.id == id; @@ -482,4 +699,19 @@ class PlaylistArtThemeProvider extends AutoDisposeFutureProvider { return _SystemHash.finish(hash); } } -// ignore_for_file: unnecessary_raw_strings, subtype_of_sealed_class, invalid_use_of_internal_member, do_not_use_environment, prefer_const_constructors, public_member_api_docs, avoid_private_typedef_functions + +mixin PlaylistArtThemeRef on AutoDisposeFutureProviderRef { + /// The parameter `id` of this provider. + String get id; +} + +class _PlaylistArtThemeProviderElement + extends AutoDisposeFutureProviderElement + with PlaylistArtThemeRef { + _PlaylistArtThemeProviderElement(super.provider); + + @override + String get id => (origin as PlaylistArtThemeProvider).id; +} +// ignore_for_file: type=lint +// ignore_for_file: subtype_of_sealed_class, invalid_use_of_internal_member, invalid_use_of_visible_for_testing_member diff --git a/pubspec.lock b/pubspec.lock index 1d12ea2..2257e1e 100644 --- a/pubspec.lock +++ b/pubspec.lock @@ -5,18 +5,18 @@ packages: dependency: transitive description: name: _fe_analyzer_shared - sha256: a36ec4843dc30ea6bf652bf25e3448db6c5e8bcf4aa55f063a5d1dad216d8214 + sha256: ae92f5d747aee634b87f89d9946000c2de774be1d6ac3e58268224348cd0101a url: "https://pub.dev" source: hosted - version: "58.0.0" + version: "61.0.0" analyzer: dependency: transitive description: name: analyzer - sha256: cc4242565347e98424ce9945c819c192ec0838cb9d1f6aa4a97cc96becbc5b27 + sha256: ea3d8652bda62982addfd92fdc2d0214e5f82e43325104990d4f4c4a2a313562 url: "https://pub.dev" source: hosted - version: "5.10.0" + version: "5.13.0" analyzer_plugin: dependency: transitive description: @@ -29,18 +29,18 @@ packages: dependency: transitive description: name: args - sha256: "4cab82a83ffef80b262ddedf47a0a8e56ee6fbf7fe21e6e768b02792034dd440" + sha256: bf9f5caeea8d8fe6721a9c358dd8a5c1947b27f1cfaa18b39c301273594919e6 url: "https://pub.dev" source: hosted - version: "2.4.0" + version: "2.6.0" async: dependency: transitive description: name: async - sha256: bfe67ef28df125b7dddcea62755991f807aa39a2492a23e1550161692950bbe0 + sha256: "947bfcf187f74dbc5e146c9eb9c0f10c9f8b30743e341481c1e2ed3ecc18c20c" url: "https://pub.dev" source: hosted - version: "2.10.0" + version: "2.11.0" audio_service: dependency: "direct main" description: @@ -54,26 +54,26 @@ packages: dependency: transitive description: name: audio_service_platform_interface - sha256: "2c3a1d52803931e836b9693547a71c0c3585ad54219d2214219ed5cfcc3c1af4" + sha256: "8431a455dac9916cc9ee6f7da5620a666436345c906ad2ebb7fa41d18b3c1bf4" url: "https://pub.dev" source: hosted - version: "0.1.0" + version: "0.1.1" audio_service_web: dependency: transitive description: name: audio_service_web - sha256: "523e64ddc914c714d53eec2da85bba1074f08cf26c786d4efb322de510815ea7" + sha256: "4cdc2127cd4562b957fb49227dc58e3303fafb09bde2573bc8241b938cf759d9" url: "https://pub.dev" source: hosted - version: "0.1.1" + version: "0.1.3" audio_session: dependency: transitive description: name: audio_session - sha256: e4acc4e9eaa32436dfc5d7aed7f0a370f2d7bb27ee27de30d6c4f220c2a05c73 + sha256: "343e83bc7809fbda2591a49e525d6b63213ade10c76f15813be9aed6657b3261" url: "https://pub.dev" source: hosted - version: "0.1.13" + version: "0.1.21" auto_route: dependency: "direct main" description: @@ -110,10 +110,10 @@ packages: dependency: transitive description: name: build - sha256: "3fbda25365741f8251b39f3917fb3c8e286a96fd068a5a242e11c2012d495777" + sha256: "80184af8b6cb3e5c1c4ec6d8544d27711700bc3e6d2efad04238c7b5290889f0" url: "https://pub.dev" source: hosted - version: "2.3.1" + version: "2.4.1" build_config: dependency: transitive description: @@ -126,34 +126,34 @@ packages: dependency: transitive description: name: build_daemon - sha256: "757153e5d9cd88253cb13f28c2fb55a537dc31fefd98137549895b5beb7c6169" + sha256: "79b2aef6ac2ed00046867ed354c88778c9c0f029df8a20fe10b5436826721ef9" url: "https://pub.dev" source: hosted - version: "3.1.1" + version: "4.0.2" build_resolvers: dependency: transitive description: name: build_resolvers - sha256: db49b8609ef8c81cca2b310618c3017c00f03a92af44c04d310b907b2d692d95 + sha256: "339086358431fa15d7eca8b6a36e5d783728cf025e559b834f4609a1fcfb7b0a" url: "https://pub.dev" source: hosted - version: "2.2.0" + version: "2.4.2" build_runner: dependency: "direct dev" description: name: build_runner - sha256: b0a8a7b8a76c493e85f1b84bffa0588859a06197863dba8c9036b15581fd9727 + sha256: "028819cfb90051c6b5440c7e574d1896f8037e3c96cf17aaeb054c9311cfbf4d" url: "https://pub.dev" source: hosted - version: "2.3.3" + version: "2.4.13" build_runner_core: dependency: transitive description: name: build_runner_core - sha256: "14febe0f5bac5ae474117a36099b4de6f1dbc52df6c5e55534b3da9591bf4292" + sha256: f8126682b87a7282a339b871298cc12009cb67109cfa1614d6436fb0289193e0 url: "https://pub.dev" source: hosted - version: "7.2.7" + version: "7.3.2" built_collection: dependency: transitive description: @@ -166,74 +166,66 @@ packages: dependency: transitive description: name: built_value - sha256: "31b7c748fd4b9adf8d25d72a4c4a59ef119f12876cf414f94f8af5131d5fa2b0" + sha256: c7913a9737ee4007efedaffc968c049fd0f3d0e49109e778edc10de9426005cb url: "https://pub.dev" source: hosted - version: "8.4.4" + version: "8.9.2" cached_network_image: dependency: "direct main" description: name: cached_network_image - sha256: fd3d0dc1d451f9a252b32d95d3f0c3c487bc41a75eba2e6097cb0b9c71491b15 + sha256: "28ea9690a8207179c319965c13cd8df184d5ee721ae2ce60f398ced1219cea1f" url: "https://pub.dev" source: hosted - version: "3.2.3" + version: "3.3.1" cached_network_image_platform_interface: dependency: transitive description: name: cached_network_image_platform_interface - sha256: bb2b8403b4ccdc60ef5f25c70dead1f3d32d24b9d6117cfc087f496b178594a7 + sha256: "9e90e78ae72caa874a323d78fa6301b3fb8fa7ea76a8f96dc5b5bf79f283bf2f" url: "https://pub.dev" source: hosted - version: "2.0.0" + version: "4.0.0" cached_network_image_web: dependency: transitive description: name: cached_network_image_web - sha256: b8eb814ebfcb4dea049680f8c1ffb2df399e4d03bf7a352c775e26fa06e02fa0 + sha256: "205d6a9f1862de34b93184f22b9d2d94586b2f05c581d546695e3d8f6a805cd7" url: "https://pub.dev" source: hosted - version: "1.0.2" + version: "1.2.0" characters: dependency: transitive description: name: characters - sha256: e6a326c8af69605aec75ed6c187d06b349707a27fbff8222ca9cc2cff167975c + sha256: "04a925763edad70e8443c99234dc3328f442e811f1d8fd1a72f1c8ad0f69a605" url: "https://pub.dev" source: hosted - version: "1.2.1" + version: "1.3.0" charcode: dependency: transitive description: name: charcode - sha256: fb98c0f6d12c920a02ee2d998da788bca066ca5f148492b7085ee23372b12306 + sha256: fb0f1107cac15a5ea6ef0a6ef71a807b9e4267c713bb93e00e92d737cc8dbd8a url: "https://pub.dev" source: hosted - version: "1.3.1" + version: "1.4.0" checked_yaml: dependency: transitive description: name: checked_yaml - sha256: "3d1505d91afa809d177efd4eed5bb0eb65805097a1463abdd2add076effae311" + sha256: feb6bed21949061731a7a75fc5d2aa727cf160b91af9a3e464c5e3a32e28b5ff url: "https://pub.dev" source: hosted - version: "2.0.2" - ci: - dependency: transitive - description: - name: ci - sha256: "145d095ce05cddac4d797a158bc4cf3b6016d1fe63d8c3d2fbd7212590adca13" - url: "https://pub.dev" - source: hosted - version: "0.1.0" + version: "2.0.3" cli_util: dependency: transitive description: name: cli_util - sha256: b8db3080e59b2503ca9e7922c3df2072cf13992354d5e944074ffa836fba43b7 + sha256: ff6785f7e9e3c38ac98b2fb035701789de90154024a75b6cb926445e83197d1c url: "https://pub.dev" source: hosted - version: "0.4.0" + version: "0.4.2" clock: dependency: transitive description: @@ -246,26 +238,26 @@ packages: dependency: transitive description: name: code_builder - sha256: "0d43dd1288fd145de1ecc9a3948ad4a6d5a82f0a14c4fdd0892260787d975cbe" + sha256: "0ec10bf4a89e4c613960bf1e8b42c64127021740fb21640c29c909826a5eea3e" url: "https://pub.dev" source: hosted - version: "4.4.0" + version: "4.10.1" collection: dependency: "direct main" description: name: collection - sha256: cfc915e6923fe5ce6e153b0723c753045de46de1b4d63771530504004a45fae0 + sha256: ee67cb0715911d28db6bf4af1026078bd6f0128b07a5f66fb2ed94ec6783c09a url: "https://pub.dev" source: hosted - version: "1.17.0" + version: "1.18.0" connectivity_plus: dependency: "direct main" description: name: connectivity_plus - sha256: d73575bb66216738db892f72ba67dc478bd3b5490fbbcf43644b57645eabc822 + sha256: b74247fad72c171381dbe700ca17da24deac637ab6d43c343b42867acb95c991 url: "https://pub.dev" source: hosted - version: "3.0.4" + version: "3.0.6" connectivity_plus_platform_interface: dependency: transitive description: @@ -278,159 +270,127 @@ packages: dependency: transitive description: name: convert - sha256: "0f08b14755d163f6e2134cb58222dd25ea2a2ee8a195e53983d57c075324d592" + sha256: b30acd5944035672bc15c6b7a8b47d773e41e2f17de064350988c5d02adb1c68 url: "https://pub.dev" source: hosted - version: "3.1.1" - coverage: - dependency: transitive - description: - name: coverage - sha256: "2fb815080e44a09b85e0f2ca8a820b15053982b2e714b59267719e8a9ff17097" - url: "https://pub.dev" - source: hosted - version: "1.6.3" + version: "3.1.2" cross_file: dependency: transitive description: name: cross_file - sha256: "0b0036e8cccbfbe0555fd83c1d31a6f30b77a96b598b35a5d36dd41f718695e9" + sha256: "7caf6a750a0c04effbb52a676dce9a4a592e10ad35c34d6d2d0e4811160d5670" url: "https://pub.dev" source: hosted - version: "0.3.3+4" + version: "0.3.4+2" crypto: dependency: "direct main" description: name: crypto - sha256: aa274aa7774f8964e4f4f38cc994db7b6158dd36e9187aaceaddc994b35c6c67 + sha256: "1e445881f28f22d6140f181e07737b22f1e099a5e1ff94b0af2f9e4a463f4855" url: "https://pub.dev" source: hosted - version: "3.0.2" - custom_lint: - dependency: transitive - description: - name: custom_lint - sha256: "80ccf10b30d4f1d0b40bd6d276a86d72266569c0a7542f1b839daf2fd05c16a5" - url: "https://pub.dev" - source: hosted - version: "0.3.3" + version: "3.0.6" custom_lint_core: dependency: transitive description: name: custom_lint_core - sha256: "83bf91d1e4ef2a893bd9a7cefaede25a4e93b47779f71a2fed33d9122e3f02c9" + sha256: a85e8f78f4c52f6c63cdaf8c872eb573db0231dcdf3c3a5906d493c1f8bc20e6 url: "https://pub.dev" source: hosted - version: "0.3.3" + version: "0.6.3" dart_style: dependency: transitive description: name: dart_style - sha256: "6d691edde054969f0e0f26abb1b30834b5138b963793e56f69d3a9a4435e6352" + sha256: "1efa911ca7086affd35f463ca2fc1799584fb6aa89883cf0af8e3664d6a02d55" url: "https://pub.dev" source: hosted - version: "2.3.0" + version: "2.3.2" dbus: dependency: transitive description: name: dbus - sha256: "6f07cba3f7b3448d42d015bfd3d53fe12e5b36da2423f23838efc1d5fb31a263" + sha256: "365c771ac3b0e58845f39ec6deebc76e3276aa9922b0cc60840712094d9047ac" url: "https://pub.dev" source: hosted - version: "0.7.8" + version: "0.7.10" drift: dependency: "direct main" description: name: drift - sha256: "1eaef0a152f1b3dc2e3ad3b04f900794bbe5a2833c26a85794ed1f7e5b7320ce" + sha256: b50a8342c6ddf05be53bda1d246404cbad101b64dc73e8d6d1ac1090d119b4e2 url: "https://pub.dev" source: hosted - version: "2.7.0" + version: "2.15.0" drift_dev: dependency: "direct dev" description: name: drift_dev - sha256: b6c2b1bcf637d34142bf9a0c21d1d290ade2254538be00559360db165b524381 + sha256: c037d9431b6f8dc633652b1469e5f53aaec6e4eb405ed29dd232fa888ef10d88 url: "https://pub.dev" source: hosted - version: "2.7.0" - fake_async: - dependency: transitive - description: - name: fake_async - sha256: "511392330127add0b769b75a987850d136345d9227c6b94c96a04cf4a391bf78" - url: "https://pub.dev" - source: hosted - version: "1.3.1" + version: "2.15.0" fast_immutable_collections: dependency: "direct main" description: name: fast_immutable_collections - sha256: "60d68b272a33f919da05cd5f6dddcc69f62ace6a81b29f87a23b54a9126c971e" + sha256: b910ccdc99bb38a2abbce07c5afb8f81d4e222a892e4d095a548b99814837b0c url: "https://pub.dev" source: hosted - version: "9.0.0" + version: "9.2.1" ffi: dependency: transitive description: name: ffi - sha256: a38574032c5f1dd06c4aee541789906c12ccaab8ba01446e800d9c5b79c4a978 + sha256: "16ed7b077ef01ad6170a3d0c57caa4a112a38d7a2ed5602e0aca9ca6f3d98da6" url: "https://pub.dev" source: hosted - version: "2.0.1" + version: "2.1.3" file: dependency: transitive description: name: file - sha256: "1b92bec4fc2a72f59a8e15af5f52cd441e4a7860b49499d69dfa817af20e925d" + sha256: a3b4f84adafef897088c160faf7dfffb7696046cb13ae90b508c2cbc95d3b8d4 url: "https://pub.dev" source: hosted - version: "6.1.4" + version: "7.0.1" fixnum: dependency: transitive description: name: fixnum - sha256: "25517a4deb0c03aa0f32fd12db525856438902d9c16536311e76cdc57b31d7d1" + sha256: b6dc7065e46c974bc7c5f143080a6764ec7a4be6da1285ececdc37be96de53be url: "https://pub.dev" source: hosted - version: "1.1.0" + version: "1.1.1" flutter: dependency: "direct main" description: flutter source: sdk version: "0.0.0" - flutter_blurhash: - dependency: transitive - description: - name: flutter_blurhash - sha256: "05001537bd3fac7644fa6558b09ec8c0a3f2eba78c0765f88912882b1331a5c6" - url: "https://pub.dev" - source: hosted - version: "0.7.0" flutter_cache_manager: dependency: "direct main" description: name: flutter_cache_manager - sha256: "32cd900555219333326a2d0653aaaf8671264c29befa65bbd9856d204a4c9fb3" + sha256: "8207f27539deb83732fdda03e259349046a39a4c767269285f449ade355d54ba" url: "https://pub.dev" source: hosted - version: "3.3.0" + version: "3.3.1" flutter_dotenv: dependency: "direct main" description: name: flutter_dotenv - sha256: d9283d92059a22e9834bc0a31336658ffba77089fb6f3cc36751f1fc7c6661a3 + sha256: b7c7be5cd9f6ef7a78429cabd2774d3c4af50e79cb2b7593e3d5d763ef95c61b url: "https://pub.dev" source: hosted - version: "5.0.2" + version: "5.2.1" flutter_downloader: dependency: "direct main" description: name: flutter_downloader - sha256: "6f2836668f33d0cd3ed275c3198d30967c42af53fa9b18c6b0edbf5fc12b599a" + sha256: b6da5495b6258aa7c243d0f0a5281e3430b385bccac11cc508f981e653b25aa6 url: "https://pub.dev" source: hosted - version: "1.10.2" + version: "1.11.8" flutter_hooks: dependency: "direct main" description: @@ -443,10 +403,10 @@ packages: dependency: "direct main" description: name: flutter_keyboard_visibility - sha256: "86b71bbaffa38e885f5c21b1182408b9be6951fd125432cf6652c636254cef2d" + sha256: "4983655c26ab5b959252ee204c2fffa4afeb4413cd030455194ec0caa3b8e7cb" url: "https://pub.dev" source: hosted - version: "5.4.0" + version: "5.4.1" flutter_keyboard_visibility_linux: dependency: transitive description: @@ -491,10 +451,10 @@ packages: dependency: "direct dev" description: name: flutter_lints - sha256: aeb0b80a8b3709709c9cc496cdc027c5b3216796bc0af0ce1007eaf24464fd4c + sha256: a25a15ebbdfc33ab1cd26c63a6ee519df92338a9c10f122adda92938253bef04 url: "https://pub.dev" source: hosted - version: "2.0.1" + version: "2.0.3" flutter_localizations: dependency: "direct main" description: flutter @@ -504,10 +464,10 @@ packages: dependency: transitive description: name: flutter_riverpod - sha256: "812dfbb87af51e73e68ea038bcfd1c732078d6838d3388d03283db7dec0d1e5f" + sha256: "9532ee6db4a943a1ed8383072a2e3eeda041db5657cdf6d2acecf3c21ecbe7e1" url: "https://pub.dev" source: hosted - version: "2.3.4" + version: "2.6.1" flutter_staggered_grid_view: dependency: "direct main" description: @@ -520,15 +480,10 @@ packages: dependency: "direct main" description: name: flutter_svg - sha256: f991fdb1533c3caeee0cdc14b04f50f0c3916f0dbcbc05237ccbe4e3c6b93f3f + sha256: d39e7f95621fc84376bc0f7d504f05c3a41488c562f4a8ad410569127507402c url: "https://pub.dev" source: hosted - version: "2.0.5" - flutter_test: - dependency: "direct dev" - description: flutter - source: sdk - version: "0.0.0" + version: "2.0.9" flutter_web_plugins: dependency: transitive description: flutter @@ -538,58 +493,58 @@ packages: dependency: "direct dev" description: name: freezed - sha256: e819441678f1679b719008ff2ff0ef045d66eed9f9ec81166ca0d9b02a187454 + sha256: a434911f643466d78462625df76fd9eb13e57348ff43fe1f77bbe909522c67a1 url: "https://pub.dev" source: hosted - version: "2.3.2" + version: "2.5.2" freezed_annotation: dependency: "direct main" description: name: freezed_annotation - sha256: aeac15850ef1b38ee368d4c53ba9a847e900bb2c53a4db3f6881cbb3cb684338 + sha256: c2e2d632dd9b8a2b7751117abcfc2b4888ecfe181bd9fca7170d9ef02e595fe2 url: "https://pub.dev" source: hosted - version: "2.2.0" + version: "2.4.4" frontend_server_client: dependency: transitive description: name: frontend_server_client - sha256: "408e3ca148b31c20282ad6f37ebfa6f4bdc8fede5b74bc2f08d9d92b55db3612" + sha256: f64a0333a82f30b0cca061bc3d143813a486dc086b574bfb233b7c1372427694 url: "https://pub.dev" source: hosted - version: "3.2.0" + version: "4.0.0" glob: dependency: transitive description: name: glob - sha256: "4515b5b6ddb505ebdd242a5f2cc5d22d3d6a80013789debfbda7777f47ea308c" + sha256: "0e7014b3b7d4dac1ca4d6114f82bf1782ee86745b9b42a92c9289c23d8a0ab63" url: "https://pub.dev" source: hosted - version: "2.1.1" + version: "2.1.2" graphs: dependency: transitive description: name: graphs - sha256: f9e130f3259f52d26f0cfc0e964513796dafed572fa52e45d2f8d6ca14db39b2 + sha256: "741bbf84165310a68ff28fe9e727332eef1407342fca52759cb21ad8177bb8d0" url: "https://pub.dev" source: hosted - version: "2.2.0" + version: "2.3.2" hooks_riverpod: dependency: "direct main" description: name: hooks_riverpod - sha256: eceb62b7e3a18e6c2831498c3f2ea5b42c0a938c95d0c1eb1b8a7ccdd022accc + sha256: "70bba33cfc5670c84b796e6929c54b8bc5be7d0fe15bb28c2560500b9ad06966" url: "https://pub.dev" source: hosted - version: "2.3.4" + version: "2.6.1" http: dependency: "direct main" description: name: http - sha256: "6aa2946395183537c8b880962d935877325d6a09a2867c3970c05c0fed6ac482" + sha256: "5895291c13fa8a3bd82e76d5627f69e0d85ca6a30dcac95c4ea19a5d555879c2" url: "https://pub.dev" source: hosted - version: "0.13.5" + version: "0.13.6" http_multi_server: dependency: transitive description: @@ -618,114 +573,114 @@ packages: dependency: "direct main" description: name: intl - sha256: a3715e3bc90294e971cb7dc063fbf3cd9ee0ebf8604ffeafabd9e6f16abbdbe6 + sha256: "3bc132a9dbce73a7e4a21a17d06e1878839ffbf975568bc875c60537824b0c4d" url: "https://pub.dev" source: hosted - version: "0.18.0" + version: "0.18.1" io: dependency: transitive description: name: io - sha256: "2ec25704aba361659e10e3e5f5d672068d332fc8ac516421d483a11e5cbd061e" + sha256: dfd5a80599cf0165756e3181807ed3e77daf6dd4137caaad72d0b7931597650b url: "https://pub.dev" source: hosted - version: "1.0.4" + version: "1.0.5" js: dependency: transitive description: name: js - sha256: "5528c2f391ededb7775ec1daa69e65a2d61276f7552de2b5f7b8d34ee9fd4ab7" + sha256: f2c445dce49627136094980615a031419f7f3eb393237e4ecd97ac15dea343f3 url: "https://pub.dev" source: hosted - version: "0.6.5" + version: "0.6.7" json_annotation: dependency: "direct main" description: name: json_annotation - sha256: c33da08e136c3df0190bd5bbe51ae1df4a7d96e7954d1d7249fea2968a72d317 + sha256: "1ce844379ca14835a50d2f019a3099f419082cfdd231cd86a142af94dd5c6bb1" url: "https://pub.dev" source: hosted - version: "4.8.0" + version: "4.9.0" json_serializable: dependency: "direct dev" description: name: json_serializable - sha256: dadc08bd61f72559f938dd08ec20dbfec6c709bba83515085ea943d2078d187a + sha256: ea1432d167339ea9b5bb153f0571d0039607a873d6e04e0117af043f14a1fd4b url: "https://pub.dev" source: hosted - version: "6.6.1" + version: "6.8.0" just_audio: dependency: "direct main" description: name: just_audio - sha256: "7e6d31508dacd01a066e3889caf6282e5f1eb60707c230203b21a83af5c55586" + sha256: a49e7120b95600bd357f37a2bb04cd1e88252f7cdea8f3368803779b925b1049 url: "https://pub.dev" source: hosted - version: "0.9.32" + version: "0.9.42" just_audio_platform_interface: dependency: transitive description: name: just_audio_platform_interface - sha256: eff112d5138bea3ba544b6338b1e0537a32b5e1425e4d0dc38f732771cda7c84 + sha256: "0243828cce503c8366cc2090cefb2b3c871aa8ed2f520670d76fd47aa1ab2790" url: "https://pub.dev" source: hosted - version: "4.2.0" + version: "4.3.0" just_audio_web: dependency: transitive description: name: just_audio_web - sha256: "89d8db6f19f3821bb6bf908c4bfb846079afb2ab575b783d781a6bf119e3abaf" + sha256: "9a98035b8b24b40749507687520ec5ab404e291d2b0937823ff45d92cb18d448" url: "https://pub.dev" source: hosted - version: "0.4.7" + version: "0.4.13" lints: dependency: transitive description: name: lints - sha256: "5e4a9cd06d447758280a8ac2405101e0e2094d2a1dbdd3756aec3fe7775ba593" + sha256: "0a217c6c989d21039f1498c3ed9f3ed71b354e69873f13a8dfc3c9fe76f1b452" url: "https://pub.dev" source: hosted - version: "2.0.1" + version: "2.1.1" logging: dependency: "direct main" description: name: logging - sha256: "04094f2eb032cbb06c6f6e8d3607edcfcb0455e2bb6cbc010cb01171dcb64e6d" + sha256: c8245ada5f1717ed44271ed1c26b8ce85ca3228fd2ffdb75468ab01979309d61 url: "https://pub.dev" source: hosted - version: "1.1.1" + version: "1.3.0" matcher: dependency: transitive description: name: matcher - sha256: "16db949ceee371e9b99d22f88fa3a73c4e59fd0afed0bd25fc336eb76c198b72" + sha256: d2323aa2060500f906aa31a895b4030b6da3ebdcc5619d14ce1aada65cd161cb url: "https://pub.dev" source: hosted - version: "0.12.13" + version: "0.12.16+1" material_color_utilities: dependency: transitive description: name: material_color_utilities - sha256: d92141dc6fe1dad30722f9aa826c7fbc896d021d792f80678280601aff8cf724 + sha256: f7142bb1154231d7ea5f96bc7bde4bda2a0945d2806bb11670e30b850d56bdec url: "https://pub.dev" source: hosted - version: "0.2.0" + version: "0.11.1" meta: dependency: transitive description: name: meta - sha256: "6c268b42ed578a53088d834796959e4a1814b5e9e164f147f580a386e5decf42" + sha256: bdb68674043280c3428e9ec998512fb681678676b3c54e773629ffe74419f8c7 url: "https://pub.dev" source: hosted - version: "1.8.0" + version: "1.15.0" mime: dependency: "direct main" description: name: mime - sha256: e4ff8e8564c03f255408decd16e7899da1733852a9110a58fe6d1b817684a63e + sha256: "801fd0b26f14a4a58ccb09d5892c3fbdeff209594300a542492cf13fba9d247a" url: "https://pub.dev" source: hosted - version: "1.0.4" + version: "1.0.6" nm: dependency: transitive description: @@ -734,22 +689,14 @@ packages: url: "https://pub.dev" source: hosted version: "0.5.0" - node_preamble: - dependency: transitive - description: - name: node_preamble - sha256: "6e7eac89047ab8a8d26cf16127b5ed26de65209847630400f9aefd7cd5c730db" - url: "https://pub.dev" - source: hosted - version: "2.0.2" octo_image: dependency: transitive description: name: octo_image - sha256: "107f3ed1330006a3bea63615e81cf637433f5135a52466c7caa0e7152bca9143" + sha256: "34faa6639a78c7e3cbe79be6f9f96535867e879748ade7d17c9b1ae7536293bd" url: "https://pub.dev" source: hosted - version: "1.0.2" + version: "2.1.0" package_config: dependency: transitive description: @@ -762,122 +709,114 @@ packages: dependency: "direct main" description: name: package_info_plus - sha256: de41e74b0ea9a3e524c68f35099af1fdeb4885625aeb277d2e01a42d6bd7b293 + sha256: da8d9ac8c4b1df253d1a328b7bf01ae77ef132833479ab40763334db13b91cce url: "https://pub.dev" source: hosted - version: "3.1.1" + version: "8.1.1" package_info_plus_platform_interface: dependency: transitive description: name: package_info_plus_platform_interface - sha256: "9bc8ba46813a4cc42c66ab781470711781940780fd8beddd0c3da62506d3a6c6" + sha256: ac1f4a4847f1ade8e6a87d1f39f5d7c67490738642e2542f559ec38c37489a66 url: "https://pub.dev" source: hosted - version: "2.0.1" + version: "3.0.1" palette_generator: dependency: "direct main" description: name: palette_generator - sha256: "0e3cd6974e10b1434dcf4cf779efddb80e2696585e273a2dbede6af52f94568d" + sha256: "0b20245c451f14a5ca0818ab7a377765162389f8e8f0db361cceabf0fed9d1ea" url: "https://pub.dev" source: hosted - version: "0.3.3+2" + version: "0.3.3+5" path: dependency: "direct main" description: name: path - sha256: db9d4f58c908a4ba5953fcee2ae317c94889433e5024c27ce74a37f94267945b + sha256: "087ce49c3f0dc39180befefc60fdb4acd8f8620e5682fe2476afd0b3688bb4af" url: "https://pub.dev" source: hosted - version: "1.8.2" + version: "1.9.0" path_parsing: dependency: transitive description: name: path_parsing - sha256: e3e67b1629e6f7e8100b367d3db6ba6af4b1f0bb80f64db18ef1fbabd2fa9ccf + sha256: "883402936929eac138ee0a45da5b0f2c80f89913e6dc3bf77eb65b84b409c6ca" url: "https://pub.dev" source: hosted - version: "1.0.1" + version: "1.1.0" path_provider: dependency: "direct main" description: name: path_provider - sha256: c7edf82217d4b2952b2129a61d3ad60f1075b9299e629e149a8d2e39c2e6aad4 + sha256: "50c5dd5b6e1aaf6fb3a78b33f6aa3afca52bf903a8a5298f53101fdaee55bbcd" url: "https://pub.dev" source: hosted - version: "2.0.14" + version: "2.1.5" path_provider_android: dependency: transitive description: name: path_provider_android - sha256: "019f18c9c10ae370b08dce1f3e3b73bc9f58e7f087bb5e921f06529438ac0ae7" + sha256: "4adf4fd5423ec60a29506c76581bc05854c55e3a0b72d35bb28d661c9686edf2" url: "https://pub.dev" source: hosted - version: "2.0.24" + version: "2.2.15" path_provider_foundation: dependency: transitive description: name: path_provider_foundation - sha256: "818b2dc38b0f178e0ea3f7cf3b28146faab11375985d815942a68eee11c2d0f7" + sha256: "4843174df4d288f5e29185bd6e72a6fbdf5a4a4602717eed565497429f179942" url: "https://pub.dev" source: hosted - version: "2.2.1" + version: "2.4.1" path_provider_linux: dependency: transitive description: name: path_provider_linux - sha256: "2ae08f2216225427e64ad224a24354221c2c7907e448e6e0e8b57b1eb9f10ad1" + sha256: f7a1fe3a634fe7734c8d3f2766ad746ae2a2884abe22e241a8b301bf5cac3279 url: "https://pub.dev" source: hosted - version: "2.1.10" + version: "2.2.1" path_provider_platform_interface: dependency: transitive description: name: path_provider_platform_interface - sha256: "57585299a729335f1298b43245842678cb9f43a6310351b18fb577d6e33165ec" + sha256: "88f5779f72ba699763fa3a3b06aa4bf6de76c8e5de842cf6f29e2e06476c2334" url: "https://pub.dev" source: hosted - version: "2.0.6" + version: "2.1.2" path_provider_windows: dependency: transitive description: name: path_provider_windows - sha256: d3f80b32e83ec208ac95253e0cd4d298e104fbc63cb29c5c69edaed43b0c69d6 + sha256: bd6f00dbd873bfb70d0761682da2b3a2c2fccc2b9e84c495821639601d81afe7 url: "https://pub.dev" source: hosted - version: "2.1.6" - pedantic: - dependency: transitive - description: - name: pedantic - sha256: "67fc27ed9639506c856c840ccce7594d0bdcd91bc8d53d6e52359449a1d50602" - url: "https://pub.dev" - source: hosted - version: "1.11.1" + version: "2.3.0" petitparser: dependency: transitive description: name: petitparser - sha256: "49392a45ced973e8d94a85fdb21293fbb40ba805fc49f2965101ae748a3683b4" + sha256: c15605cd28af66339f8eb6fbe0e541bfe2d1b72d5825efc6598f3e0a31b9ad27 url: "https://pub.dev" source: hosted - version: "5.1.0" + version: "6.0.2" platform: dependency: transitive description: name: platform - sha256: "4a451831508d7d6ca779f7ac6e212b4023dd5a7d08a27a63da33756410e32b76" + sha256: "5d6b1b0036a5f331ebc77c850ebc8506cbc1e9416c27e59b439f917a902a4984" url: "https://pub.dev" source: hosted - version: "3.1.0" + version: "3.1.6" plugin_platform_interface: dependency: transitive description: name: plugin_platform_interface - sha256: "6a2128648c854906c53fa8e33986fc0247a1116122f9534dd20e3ab9e16a32bc" + sha256: "4820fbfdb9478b1ebae27888254d445073732dae3d6ea81f0b7e06d5dedc3f02" url: "https://pub.dev" source: hosted - version: "2.1.4" + version: "2.1.8" pool: dependency: "direct main" description: @@ -886,30 +825,22 @@ packages: url: "https://pub.dev" source: hosted version: "1.5.1" - process: - dependency: transitive - description: - name: process - sha256: "53fd8db9cec1d37b0574e12f07520d582019cb6c44abf5479a01505099a34a09" - url: "https://pub.dev" - source: hosted - version: "4.2.4" pub_semver: dependency: transitive description: name: pub_semver - sha256: "307de764d305289ff24ad257ad5c5793ce56d04947599ad68b3baa124105fc17" + sha256: "40d3ab1bbd474c4c2328c91e3a7df8c6dd629b79ece4c4bd04bee496a224fb0c" url: "https://pub.dev" source: hosted - version: "2.1.3" + version: "2.1.4" pubspec_parse: dependency: transitive description: name: pubspec_parse - sha256: ec85d7d55339d85f44ec2b682a82fea340071e8978257e5a43e69f79e98ef50c + sha256: c799b721d79eb6ee6fa56f00c04b472dcd44a30d258fac2174a6ec57302678f8 url: "https://pub.dev" source: hosted - version: "1.2.2" + version: "1.3.0" recase: dependency: transitive description: @@ -922,34 +853,34 @@ packages: dependency: transitive description: name: riverpod - sha256: "77ab3bcd084bb19fa8717a526217787c725d7f5be938404c7839cd760fdf6ae5" + sha256: "59062512288d3056b2321804332a13ffdd1bf16df70dcc8e506e411280a72959" url: "https://pub.dev" source: hosted - version: "2.3.4" + version: "2.6.1" riverpod_analyzer_utils: dependency: transitive description: name: riverpod_analyzer_utils - sha256: "34270111fa5843517e9ee63b1f906c756d99380f2aecbce52151aadb6d1c05a6" + sha256: "8b71f03fc47ae27d13769496a1746332df4cec43918aeba9aff1e232783a780f" url: "https://pub.dev" source: hosted - version: "0.2.1" + version: "0.5.1" riverpod_annotation: dependency: "direct main" description: name: riverpod_annotation - sha256: afc01d5ba57e7993342c8d5120925826949455607ae29c8d98608ee840ee1cd6 + sha256: e14b0bf45b71326654e2705d462f21b958f987087be850afd60578fcd502d1b8 url: "https://pub.dev" source: hosted - version: "2.0.4" + version: "2.6.1" riverpod_generator: dependency: "direct dev" description: name: riverpod_generator - sha256: decd5427a51603fc2add9b01f04874ac0bc6b5b6547343b8a5ccb0ba1a069943 + sha256: d451608bf17a372025fc36058863737636625dfdb7e3cbf6142e0dfeb366ab22 url: "https://pub.dev" source: hosted - version: "2.1.6" + version: "2.4.0" rxdart: dependency: "direct main" description: @@ -962,50 +893,34 @@ packages: dependency: "direct main" description: name: share_plus - sha256: "322a1ec9d9fe07e2e2252c098ce93d12dbd06133cc4c00ffe6a4ef505c295c17" + sha256: "3ef39599b00059db0990ca2e30fca0a29d8b37aae924d60063f8e0184cf20900" url: "https://pub.dev" source: hosted - version: "7.0.0" + version: "7.2.2" share_plus_platform_interface: dependency: transitive description: name: share_plus_platform_interface - sha256: "0c6e61471bd71b04a138b8b588fa388e66d8b005e6f2deda63371c5c505a0981" + sha256: "251eb156a8b5fa9ce033747d73535bf53911071f8d3b6f4f0b578505ce0d4496" url: "https://pub.dev" source: hosted - version: "3.2.1" + version: "3.4.0" shelf: dependency: transitive description: name: shelf - sha256: c24a96135a2ccd62c64b69315a14adc5c3419df63b4d7c05832a346fdb73682c + sha256: ad29c505aee705f41a4d8963641f91ac4cee3c8fad5947e033390a7bd8180fa4 url: "https://pub.dev" source: hosted - version: "1.4.0" - shelf_packages_handler: - dependency: transitive - description: - name: shelf_packages_handler - sha256: aef74dc9195746a384843102142ab65b6a4735bb3beea791e63527b88cc83306 - url: "https://pub.dev" - source: hosted - version: "3.0.1" - shelf_static: - dependency: transitive - description: - name: shelf_static - sha256: e792b76b96a36d4a41b819da593aff4bdd413576b3ba6150df5d8d9996d2e74c - url: "https://pub.dev" - source: hosted - version: "1.1.1" + version: "1.4.1" shelf_web_socket: dependency: transitive description: name: shelf_web_socket - sha256: a988c0e8d8ffbdb8a28aa7ec8e449c260f3deb808781fe1284d22c5bba7156e8 + sha256: cc36c297b52866d203dbf9332263c94becc2fe0ceaa9681d07b6ef9807023b67 url: "https://pub.dev" source: hosted - version: "1.0.3" + version: "2.0.1" sky_engine: dependency: transitive description: flutter @@ -1015,114 +930,130 @@ packages: dependency: "direct main" description: name: sliver_tools - sha256: ccdc502098a8bfa07b3ec582c282620031481300035584e1bb3aca296a505e8c + sha256: eae28220badfb9d0559207badcbbc9ad5331aac829a88cb0964d330d2a4636a6 url: "https://pub.dev" source: hosted - version: "0.2.10" + version: "0.2.12" source_gen: dependency: transitive description: name: source_gen - sha256: c2bea18c95cfa0276a366270afaa2850b09b4a76db95d546f3d003dcc7011298 + sha256: "14658ba5f669685cd3d63701d01b31ea748310f7ab854e471962670abcf57832" url: "https://pub.dev" source: hosted - version: "1.2.7" + version: "1.5.0" source_helper: dependency: transitive description: name: source_helper - sha256: "3b67aade1d52416149c633ba1bb36df44d97c6b51830c2198e934e3fca87ca1f" + sha256: "6adebc0006c37dd63fe05bca0a929b99f06402fc95aa35bf36d67f5c06de01fd" url: "https://pub.dev" source: hosted - version: "1.3.3" - source_map_stack_trace: - dependency: transitive - description: - name: source_map_stack_trace - sha256: "84cf769ad83aa6bb61e0aa5a18e53aea683395f196a6f39c4c881fb90ed4f7ae" - url: "https://pub.dev" - source: hosted - version: "2.1.1" - source_maps: - dependency: transitive - description: - name: source_maps - sha256: "708b3f6b97248e5781f493b765c3337db11c5d2c81c3094f10904bfa8004c703" - url: "https://pub.dev" - source: hosted - version: "0.10.12" + version: "1.3.4" source_span: dependency: transitive description: name: source_span - sha256: dd904f795d4b4f3b870833847c461801f6750a9fa8e61ea5ac53f9422b31f250 + sha256: "53e943d4206a5e30df338fd4c6e7a077e02254531b138a15aec3bd143c1a8b3c" url: "https://pub.dev" source: hosted - version: "1.9.1" + version: "1.10.0" + sprintf: + dependency: transitive + description: + name: sprintf + sha256: "1fc9ffe69d4df602376b52949af107d8f5703b77cda567c4d7d86a0693120f23" + url: "https://pub.dev" + source: hosted + version: "7.0.0" sqflite: dependency: transitive description: name: sqflite - sha256: "500d6fec583d2c021f2d25a056d96654f910662c64f836cd2063167b8f1fa758" + sha256: "2d7299468485dca85efeeadf5d38986909c5eb0cd71fd3db2c2f000e6c9454bb" url: "https://pub.dev" source: hosted - version: "2.2.6" + version: "2.4.1" + sqflite_android: + dependency: transitive + description: + name: sqflite_android + sha256: "78f489aab276260cdd26676d2169446c7ecd3484bbd5fead4ca14f3ed4dd9ee3" + url: "https://pub.dev" + source: hosted + version: "2.4.0" sqflite_common: dependency: transitive description: name: sqflite_common - sha256: "963dad8c4aa2f814ce7d2d5b1da2f36f31bd1a439d8f27e3dc189bb9d26bc684" + sha256: "761b9740ecbd4d3e66b8916d784e581861fd3c3553eda85e167bc49fdb68f709" url: "https://pub.dev" source: hosted - version: "2.4.3" + version: "2.5.4+6" + sqflite_darwin: + dependency: transitive + description: + name: sqflite_darwin + sha256: "96a698e2bc82bd770a4d6aab00b42396a7c63d9e33513a56945cbccb594c2474" + url: "https://pub.dev" + source: hosted + version: "2.4.1" + sqflite_platform_interface: + dependency: transitive + description: + name: sqflite_platform_interface + sha256: "8dd4515c7bdcae0a785b0062859336de775e8c65db81ae33dd5445f35be61920" + url: "https://pub.dev" + source: hosted + version: "2.4.0" sqlite3: dependency: transitive description: name: sqlite3 - sha256: a3ba4b66a7ab170ce7aa3f5ac43c19ee8d6637afbe7b7c95c94112b4f4d91566 + sha256: cb7f4e9dc1b52b1fa350f7b3d41c662e75fc3d399555fa4e5efcf267e9a4fbb5 url: "https://pub.dev" source: hosted - version: "1.11.0" + version: "2.5.0" sqlite3_flutter_libs: dependency: "direct main" description: name: sqlite3_flutter_libs - sha256: "02f80aea54a19a36b347dedf6d4181ecd9107f5831ea6139cfd0376a3de197ba" + sha256: "636b0fe8a2de894e5455572f6cbbc458f4ffecfe9f860b79439e27041ea4f0b9" url: "https://pub.dev" source: hosted - version: "0.5.13" + version: "0.5.27" sqlparser: dependency: transitive description: name: sqlparser - sha256: "11ebfd764085a96261f44f90cbf475927c508e654d4be30ee4832d564d06d86b" + sha256: "7b20045d1ccfb7bc1df7e8f9fee5ae58673fce6ff62cefbb0e0fd7214e90e5a0" url: "https://pub.dev" source: hosted - version: "0.28.1" + version: "0.34.1" stack_trace: dependency: "direct main" description: name: stack_trace - sha256: c3c7d8edb15bee7f0f74debd4b9c5f3c2ea86766fe4178eb2a18eb30a0bdaed5 + sha256: "73713990125a6d93122541237550ee3352a2d84baad52d375a4cad2eb9b7ce0b" url: "https://pub.dev" source: hosted - version: "1.11.0" + version: "1.11.1" state_notifier: dependency: transitive description: name: state_notifier - sha256: "8fe42610f179b843b12371e40db58c9444f8757f8b69d181c97e50787caed289" + sha256: b8677376aa54f2d7c58280d5a007f9e8774f1968d1fb1c096adcb4792fba29bb url: "https://pub.dev" source: hosted - version: "0.7.2+1" + version: "1.0.0" stream_channel: dependency: transitive description: name: stream_channel - sha256: "83615bee9045c1d322bbbd1ba209b7a749c2cbcdcb3fdd1df8eb488b3279c1c8" + sha256: ba2aa5d8cc609d96bbb2899c28934f9e1af5cddbd60a827822ea467161eb54e7 url: "https://pub.dev" source: hosted - version: "2.1.1" + version: "2.1.2" stream_transform: dependency: transitive description: @@ -1143,10 +1074,10 @@ packages: dependency: "direct main" description: name: synchronized - sha256: "5fcbd27688af6082f5abd611af56ee575342c30e87541d0245f7ff99faa02c60" + sha256: "69fe30f3a8b04a0be0c15ae6490fc859a78ef4c43ae2dd5e8a623d45bfcf9225" url: "https://pub.dev" source: hosted - version: "3.1.0" + version: "3.3.0+3" term_glyph: dependency: transitive description: @@ -1155,30 +1086,14 @@ packages: url: "https://pub.dev" source: hosted version: "1.2.1" - test: - dependency: "direct dev" - description: - name: test - sha256: a5fcd2d25eeadbb6589e80198a47d6a464ba3e2049da473943b8af9797900c2d - url: "https://pub.dev" - source: hosted - version: "1.22.0" test_api: dependency: transitive description: name: test_api - sha256: ad540f65f92caa91bf21dfc8ffb8c589d6e4dc0c2267818b4cc2792857706206 + sha256: "5b8a98dafc4d5c4c9c72d8b31ab2b23fc13422348d2997120294d3bac86b4ddb" url: "https://pub.dev" source: hosted - version: "0.4.16" - test_core: - dependency: transitive - description: - name: test_core - sha256: "0ef9755ec6d746951ba0aabe62f874b707690b5ede0fecc818b138fcc9b14888" - url: "https://pub.dev" - source: hosted - version: "0.4.20" + version: "0.7.2" text_scroll: dependency: "direct main" description: @@ -1199,106 +1114,106 @@ packages: dependency: transitive description: name: typed_data - sha256: "26f87ade979c47a150c9eaab93ccd2bebe70a27dc0b4b29517f2904f04eb11a5" + sha256: f9049c039ebfeb4cf7a7104a675823cd72dba8297f264b6637062516699fa006 url: "https://pub.dev" source: hosted - version: "1.3.1" + version: "1.4.0" url_launcher: dependency: "direct main" description: name: url_launcher - sha256: "75f2846facd11168d007529d6cd8fcb2b750186bea046af9711f10b907e1587e" + sha256: "9d06212b1362abc2f0f0d78e6f09f726608c74e3b9462e8368bb03314aa8d603" url: "https://pub.dev" source: hosted - version: "6.1.10" + version: "6.3.1" url_launcher_android: dependency: transitive description: name: url_launcher_android - sha256: "40612cd31902fe46b5158693faa65781b1ca7adfb883d77fa6f0d6dcf0317d85" + sha256: "6fc2f56536ee873eeb867ad176ae15f304ccccc357848b351f6f0d8d4a40d193" url: "https://pub.dev" source: hosted - version: "6.0.30" + version: "6.3.14" url_launcher_ios: dependency: transitive description: name: url_launcher_ios - sha256: "9af7ea73259886b92199f9e42c116072f05ff9bea2dcb339ab935dfc957392c2" + sha256: "16a513b6c12bb419304e72ea0ae2ab4fed569920d1c7cb850263fe3acc824626" url: "https://pub.dev" source: hosted - version: "6.1.4" + version: "6.3.2" url_launcher_linux: dependency: transitive description: name: url_launcher_linux - sha256: "207f4ddda99b95b4d4868320a352d374b0b7e05eefad95a4a26f57da413443f5" + sha256: "4e9ba368772369e3e08f231d2301b4ef72b9ff87c31192ef471b380ef29a4935" url: "https://pub.dev" source: hosted - version: "3.0.5" + version: "3.2.1" url_launcher_macos: dependency: transitive description: name: url_launcher_macos - sha256: "91ee3e75ea9dadf38036200c5d3743518f4a5eb77a8d13fda1ee5764373f185e" + sha256: "17ba2000b847f334f16626a574c702b196723af2a289e7a93ffcb79acff855c2" url: "https://pub.dev" source: hosted - version: "3.0.5" + version: "3.2.2" url_launcher_platform_interface: dependency: transitive description: name: url_launcher_platform_interface - sha256: "6c9ca697a5ae218ce56cece69d46128169a58aa8653c1b01d26fcd4aad8c4370" + sha256: "552f8a1e663569be95a8190206a38187b531910283c3e982193e4f2733f01029" url: "https://pub.dev" source: hosted - version: "2.1.2" + version: "2.3.2" url_launcher_web: dependency: transitive description: name: url_launcher_web - sha256: "81fe91b6c4f84f222d186a9d23c73157dc4c8e1c71489c4d08be1ad3b228f1aa" + sha256: "772638d3b34c779ede05ba3d38af34657a05ac55b06279ea6edd409e323dca8e" url: "https://pub.dev" source: hosted - version: "2.0.16" + version: "2.3.3" url_launcher_windows: dependency: transitive description: name: url_launcher_windows - sha256: "254708f17f7c20a9c8c471f67d86d76d4a3f9c1591aad1e15292008aceb82771" + sha256: "44cf3aabcedde30f2dba119a9dea3b0f2672fbe6fa96e85536251d678216b3c4" url: "https://pub.dev" source: hosted - version: "3.0.6" + version: "3.1.3" uuid: dependency: transitive description: name: uuid - sha256: "648e103079f7c64a36dc7d39369cabb358d377078a051d6ae2ad3aa539519313" + sha256: a5be9ef6618a7ac1e964353ef476418026db906c4facdedaa299b7a2e71690ff url: "https://pub.dev" source: hosted - version: "3.0.7" + version: "4.5.1" vector_graphics: dependency: transitive description: name: vector_graphics - sha256: "4cf8e60dbe4d3a693d37dff11255a172594c0793da542183cbfe7fe978ae4aaa" + sha256: "4ac59808bbfca6da38c99f415ff2d3a5d7ca0a6b4809c71d9cf30fba5daf9752" url: "https://pub.dev" source: hosted - version: "1.1.4" + version: "1.1.10+1" vector_graphics_codec: dependency: transitive description: name: vector_graphics_codec - sha256: "278ad5f816f58b1967396d1f78ced470e3e58c9fe4b27010102c0a595c764468" + sha256: f3247e7ab0ec77dc759263e68394990edc608fb2b480b80db8aa86ed09279e33 url: "https://pub.dev" source: hosted - version: "1.1.4" + version: "1.1.10+1" vector_graphics_compiler: dependency: transitive description: name: vector_graphics_compiler - sha256: "0bf61ad56e6fd6688a2865d3ceaea396bc6a0a90ea0d7ad5049b1b76c09d6163" + sha256: "18489bdd8850de3dd7ca8a34e0c446f719ec63e2bab2e7a8cc66a9028dd76c5a" url: "https://pub.dev" source: hosted - version: "1.1.4" + version: "1.1.10+1" vector_math: dependency: transitive description: @@ -1307,46 +1222,46 @@ packages: url: "https://pub.dev" source: hosted version: "2.1.4" - vm_service: - dependency: transitive - description: - name: vm_service - sha256: e7fb6c2282f7631712b69c19d1bff82f3767eea33a2321c14fa59ad67ea391c7 - url: "https://pub.dev" - source: hosted - version: "9.4.0" watcher: dependency: transitive description: name: watcher - sha256: "6a7f46926b01ce81bfc339da6a7f20afbe7733eff9846f6d6a5466aa4c6667c0" + sha256: "3d2ad6751b3c16cf07c7fca317a1413b3f26530319181b37e3b9039b84fc01d8" url: "https://pub.dev" source: hosted - version: "1.0.2" + version: "1.1.0" + web: + dependency: transitive + description: + name: web + sha256: cd3543bd5798f6ad290ea73d210f423502e71900302dde696f8bff84bf89a1cb + url: "https://pub.dev" + source: hosted + version: "1.1.0" + web_socket: + dependency: transitive + description: + name: web_socket + sha256: "3c12d96c0c9a4eec095246debcea7b86c0324f22df69893d538fcc6f1b8cce83" + url: "https://pub.dev" + source: hosted + version: "0.1.6" web_socket_channel: dependency: transitive description: name: web_socket_channel - sha256: ca49c0bc209c687b887f30527fb6a9d80040b072cc2990f34b9bec3e7663101b + sha256: "9f187088ed104edd8662ca07af4b124465893caf063ba29758f97af57e61da8f" url: "https://pub.dev" source: hosted - version: "2.3.0" - webkit_inspection_protocol: - dependency: transitive - description: - name: webkit_inspection_protocol - sha256: "67d3a8b6c79e1987d19d848b0892e582dbb0c66c57cc1fef58a177dd2aa2823d" - url: "https://pub.dev" - source: hosted - version: "1.2.0" + version: "3.0.1" win32: dependency: transitive description: name: win32 - sha256: "5a751eddf9db89b3e5f9d50c20ab8612296e4e8db69009788d6c8b060a84191c" + sha256: "8b338d4486ab3fbc0ba0db9f9b4f5239b6697fcee427939a40e720cbb9ee0a69" url: "https://pub.dev" source: hosted - version: "4.1.4" + version: "5.9.0" worker_manager: dependency: "direct main" description: @@ -1359,26 +1274,26 @@ packages: dependency: transitive description: name: xdg_directories - sha256: ee1505df1426458f7f60aac270645098d318a8b4766d85fde75f76f2e21807d1 + sha256: "7a3f37b05d989967cdddcbb571f1ea834867ae2faa29725fd085180e0883aa15" url: "https://pub.dev" source: hosted - version: "1.0.0" + version: "1.1.0" xml: dependency: "direct main" description: name: xml - sha256: "979ee37d622dec6365e2efa4d906c37470995871fe9ae080d967e192d88286b5" + sha256: b015a8ad1c488f66851d762d3090a21c600e479dc75e68328c52774040cf9226 url: "https://pub.dev" source: hosted - version: "6.2.2" + version: "6.5.0" yaml: dependency: transitive description: name: yaml - sha256: "23812a9b125b48d4007117254bca50abb6c712352927eece9e155207b1db2370" + sha256: "75769501ea3489fca56601ff33454fe45507ea3bfb014161abc3b43ae25989d5" url: "https://pub.dev" source: hosted - version: "3.1.1" + version: "3.1.2" sdks: - dart: ">=2.19.2 <3.0.0" - flutter: ">=3.7.0-0" + dart: ">=3.5.0 <4.0.0" + flutter: ">=3.24.0" diff --git a/pubspec.yaml b/pubspec.yaml index 2b56e57..eadf346 100644 --- a/pubspec.yaml +++ b/pubspec.yaml @@ -7,7 +7,7 @@ publish_to: 'none' version: 2.0.0-alpha.3+12 environment: - sdk: '>=2.19.2 <3.0.0' + sdk: '>=3.5.0 <4.0.0' dependencies: flutter: @@ -22,7 +22,7 @@ dependencies: path: ^1.8.2 path_provider: ^2.0.12 flutter_dotenv: ^5.0.2 # TODO: remove before release - collection: ^1.17.0 + collection: ^1.17.1 intl: any flutter_hooks: ^0.18.5+1 hooks_riverpod: ^2.3.2 @@ -55,7 +55,7 @@ dependencies: synchronized: ^3.1.0 flutter_keyboard_visibility: ^5.4.0 connectivity_plus: ^3.0.4 - package_info_plus: ^3.1.1 + package_info_plus: ^8.1.1 url_launcher: ^6.1.10 logging: ^1.1.1 share_plus: ^7.0.0 @@ -65,10 +65,7 @@ dependency_overrides: intl: ^0.18.0 dev_dependencies: - flutter_test: - sdk: flutter flutter_lints: ^2.0.0 - test: ^1.22.0 build_runner: riverpod_generator: ^2.1.4 freezed: ^2.3.2