queryPlaylists method

Future<List<PlaylistEntity>> queryPlaylists({
  1. int limit = 50,
  2. bool reverse = false,
})

Used to query all playlist(entities) from playlists room.

Parameters:

  • limit this will limit the amount of entities queried. Taking less time to run and giving a better performance.
  • reverse this will define if list return will be reversed or no.

Important:

  • If limit is null, will be set to 50.
  • If reverse is null, will be set to false.

Return:

See too:

Implementation

Future<List<PlaylistEntity>> queryPlaylists({
  int limit = 50,
  bool reverse = false,
}) async {
  return _PlaylistDao().queryPlaylists(limit, reverse);
}