getPOIById static method

Future<void> getPOIById({
  1. required String id,
  2. PoiResultBack? back,
})

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"]));
    }
  }
}