getMatchesAsFlow

A helper function to convert the network response for matches into a Flow.

This function calls the getMatches method of MatchApiService and emits the resulting data as a flow. If an exception occurs, it logs the error and emits an empty list.

Return

A Flow of List of ApiMatch that emits the list of matches for the specified date.

Parameters

date

The date for which matches data is to be retrieved.