Public Access
chore(api_handler): follow recommended way for sting concat
This commit is contained in:
@@ -125,7 +125,7 @@ class ApiHandler {
|
||||
}) async {
|
||||
String urlPath = '/api/fahrinfo/latest/multiDepartureBoard';
|
||||
String stationListString = stationList
|
||||
.reduce((value, element) => value + '|' + element)
|
||||
.reduce((value, element) => '$value|$element')
|
||||
.replaceAll(' ', '%20'); // reform for URL
|
||||
|
||||
Uri url = Uri.https(baseUrl, urlPath, {
|
||||
|
||||
Reference in New Issue
Block a user