chore(api_handler): follow recommended way for sting concat

This commit is contained in:
fbachus
2026-07-29 18:42:59 +02:00
parent 95e3edf699
commit bbc46e752a
+1 -1
View File
@@ -125,7 +125,7 @@ class ApiHandler {
}) async { }) async {
String urlPath = '/api/fahrinfo/latest/multiDepartureBoard'; String urlPath = '/api/fahrinfo/latest/multiDepartureBoard';
String stationListString = stationList String stationListString = stationList
.reduce((value, element) => value + '|' + element) .reduce((value, element) => '$value|$element')
.replaceAll(' ', '%20'); // reform for URL .replaceAll(' ', '%20'); // reform for URL
Uri url = Uri.https(baseUrl, urlPath, { Uri url = Uri.https(baseUrl, urlPath, {