queryMostPlayed method
Future<List<MostPlayedEntity> >
queryMostPlayed({
- int limit = 50,
- bool reverse = false,
- RoomSortType? sortType,
Used to query all songs(entities) from most_played
room.
Use checkIn to know if song exist on most_played
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.sortType
this will define the list sort type.
Important:
- If
limit
is null, will be set to50
. - If
reverse
is null, will be set tofalse
. - If
sortType
is null, will be set tokey
.
Return:
- Will return a list of MostPlayedEntity.
See too:
Implementation
Future<List<MostPlayedEntity>> queryMostPlayed({
int limit = 50,
bool reverse = false,
RoomSortType? sortType,
}) async {
return _MostPlayedDao().queryMostPlayed(
limit,
reverse,
sortType,
);
}