searchKeyword method
Implementation
@override
Future<List<PoiResultItem>> searchKeyword({required String keyword, String city = '', String types = '', int pageSize = 20, int pageNum = 1}) async {
final dataList = await methodChannel.invokeMethod('searchKeyword', {
'keyword': keyword,
'city': city,
'types': types,
'pageSize': pageSize,
'pageNum': pageNum,
});
return dataList.map((e) => PoiResultItem.fromJson(e)).toList().cast<PoiResultItem>();
}