getPOIById static method
POI详情
Implementation
static Future<void> getPOIById({
required String id,
PoiResultBack? back,
}) async {
final String? jsonStr = await _channel.invokeMethod('getPOIById', {
"id": id,
});
if (jsonStr != null) {
Map? map = json.decode(jsonStr);
if (map != null && back != null) {
back(map['code'] as int, PoiResult.fromJson(map["data"]));
}
}
}