queryPlaylists method
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 to50
. - If
reverse
is null, will be set tofalse
.
Return:
- Will return a list of PlaylistEntity.
See too:
Implementation
Future<List<PlaylistEntity>> queryPlaylists({
int limit = 50,
bool reverse = false,
}) async {
return _PlaylistDao().queryPlaylists(limit, reverse);
}