queryAudiosFrom method Null safety

Future<List<SongModel>> queryAudiosFrom(
  1. AudiosFromType type,
  2. Object where,
  3. {SongSortType? sortType,
  4. OrderType? orderType,
  5. bool? ignoreCase}
)

Used to return Songs/Audios Info from a specific queryType based in SongModel.

Parameters:

  • type is used to define where audio will be query.
  • where is used to query audios from specific method.
  • orderType is used to define if order will be Ascending or Descending.
  • sortType is used to define list sort.
  • ignoreCase is used to define if sort will ignore the lowercase or not.

Platforms:

AndroidIOSWeb
✔️✔️✔️

See more about platforms support

Implementation

Future<List<SongModel>> queryAudiosFrom(
  AudiosFromType type,
  Object where, {
  SongSortType? sortType,
  OrderType? orderType,
  bool? ignoreCase,
}) async {
  return platform.queryAudiosFrom(
    type,
    where,
    sortType: sortType,
    orderType: orderType,
    ignoreCase: ignoreCase,
  );
}