queryArtists method

Future<List<ArtistModel>> queryArtists({
  1. ArtistSortType? sortType,
  2. OrderType? orderType,
  3. UriType? uriType,
  4. bool? ignoreCase,
})

Used to return Artists Info based in ArtistModel.

Parameters:

  • orderType is used to define if order will be Ascending or Descending.
  • sortType is used to define list sort.
  • uriType is used to define if songs will be catch in EXTERNAL or INTERNAL storage.
  • ignoreCase is used to define if sort will ignore the lowercase or not.

Important:

  • If orderType is null, will be set to ASC_OR_SMALLER.
  • If sortType is null, will be set to ArtistName.
  • If uriType is null, will be set to EXTERNAL.
  • If ignoreCase is null, will be set to true.

Platforms:

Android IOS Web
✔️ ✔️ ✔️

See more about platforms support

Implementation

Future<List<ArtistModel>> queryArtists({
  ArtistSortType? sortType,
  OrderType? orderType,
  UriType? uriType,
  bool? ignoreCase,
}) async {
  return platform.queryArtists(
    sortType: sortType,
    orderType: orderType,
    uriType: uriType,
    ignoreCase: ignoreCase,
  );
}