From b4faf972af23672ef55173f92f73fa10a7d0ab31 Mon Sep 17 00:00:00 2001 From: Valeri Gokadze Date: Mon, 22 May 2023 18:53:31 +0400 Subject: [PATCH] fix lint --- .../lib/src/on_audio_query_controller.dart | 55 +++++++++---------- 1 file changed, 26 insertions(+), 29 deletions(-) diff --git a/packages/on_audio_query/on_audio_query/lib/src/on_audio_query_controller.dart b/packages/on_audio_query/on_audio_query/lib/src/on_audio_query_controller.dart index 915eabac2..d4803d3db 100644 --- a/packages/on_audio_query/on_audio_query/lib/src/on_audio_query_controller.dart +++ b/packages/on_audio_query/on_audio_query/lib/src/on_audio_query_controller.dart @@ -130,16 +130,15 @@ class OnAudioQuery { bool fromAsset = false, bool fromAppDir = false, @Deprecated("Deprecated after [3.0.0]. Use [filter] instead") - // ignore: deprecated_member_use - SongSortType? sortType, - @Deprecated("Deprecated after [3.0.0]. Use [filter] instead") - OrderType? orderType, + // ignore: deprecated_member_use + SongSortType? sortType, @Deprecated("Deprecated after [3.0.0]. Use [filter] instead") - UriType? uriType, + OrderType? orderType, @Deprecated("Deprecated after [3.0.0]. Use [filter] instead") - bool? ignoreCase, + UriType? uriType, @Deprecated("Deprecated after [3.0.0]. Use [filter] instead") - String? path, + bool? ignoreCase, + @Deprecated("Deprecated after [3.0.0]. Use [filter] instead") String? path, }) async { return queryAudios( filter: filter, @@ -236,13 +235,13 @@ class OnAudioQuery { bool fromAsset = false, bool fromAppDir = false, @Deprecated("Deprecated after [3.0.0]. Use [filter] instead") - AlbumSortType? sortType, + AlbumSortType? sortType, @Deprecated("Deprecated after [3.0.0]. Use [filter] instead") - OrderType? orderType, + OrderType? orderType, @Deprecated("Deprecated after [3.0.0]. Use [filter] instead") - UriType? uriType, + UriType? uriType, @Deprecated("Deprecated after [3.0.0]. Use [filter] instead") - bool? ignoreCase, + bool? ignoreCase, }) async { // // if (fromAsset || fromAppDir) { @@ -292,13 +291,13 @@ class OnAudioQuery { bool fromAsset = false, bool fromAppDir = false, @Deprecated("Deprecated after [3.0.0]. Use [filter] instead") - ArtistSortType? sortType, + ArtistSortType? sortType, @Deprecated("Deprecated after [3.0.0]. Use [filter] instead") - OrderType? orderType, + OrderType? orderType, @Deprecated("Deprecated after [3.0.0]. Use [filter] instead") - UriType? uriType, + UriType? uriType, @Deprecated("Deprecated after [3.0.0]. Use [filter] instead") - bool? ignoreCase, + bool? ignoreCase, }) async { // // if (fromAsset || fromAppDir) { @@ -345,13 +344,13 @@ class OnAudioQuery { Future> queryPlaylists({ MediaFilter? filter, @Deprecated("Deprecated after [3.0.0]. Use [filter] instead") - PlaylistSortType? sortType, + PlaylistSortType? sortType, @Deprecated("Deprecated after [3.0.0]. Use [filter] instead") - OrderType? orderType, + OrderType? orderType, @Deprecated("Deprecated after [3.0.0]. Use [filter] instead") - UriType? uriType, + UriType? uriType, @Deprecated("Deprecated after [3.0.0]. Use [filter] instead") - bool? ignoreCase, + bool? ignoreCase, }) async { return platform.queryPlaylists(filter: filter); } @@ -390,13 +389,13 @@ class OnAudioQuery { bool fromAsset = false, bool fromAppDir = false, @Deprecated("Deprecated after [3.0.0]. Use [filter] instead") - GenreSortType? sortType, + GenreSortType? sortType, @Deprecated("Deprecated after [3.0.0]. Use [filter] instead") - OrderType? orderType, + OrderType? orderType, @Deprecated("Deprecated after [3.0.0]. Use [filter] instead") - UriType? uriType, + UriType? uriType, @Deprecated("Deprecated after [3.0.0]. Use [filter] instead") - bool? ignoreCase, + bool? ignoreCase, }) async { // // if (fromAsset || fromAppDir) { @@ -459,12 +458,10 @@ class OnAudioQuery { ArtworkType type, { MediaFilter? filter, @Deprecated("Deprecated after [3.0.0]. Use [filter] instead") - // ignore: deprecated_member_use - ArtworkFormat? format, - @Deprecated("Deprecated after [3.0.0]. Use [filter] instead") - int? size, - @Deprecated("Deprecated after [3.0.0]. Use [filter] instead") - int? quality, + // ignore: deprecated_member_use + ArtworkFormat? format, + @Deprecated("Deprecated after [3.0.0]. Use [filter] instead") int? size, + @Deprecated("Deprecated after [3.0.0]. Use [filter] instead") int? quality, }) async { return platform.queryArtwork( id,