requestSearch method
Implementation
Future<List<OSMData>> requestSearch(
{required Client client, required String search}) async {
var response = await HttpRequestCustom.requestWithSearch(
client: client, search: search);
notifyListener();
if (response.isNotEmpty) {
return response.map((e) => OSMData.fromJson(e)).toList();
} else {
return [];
}
}