addGeoFencePolygon static method
创建自定义围栏
points
多边形的边界坐标点,最少传3个
customId
与围栏关联的自有业务Id
Implementation
static Future<void> addGeoFencePolygon(List<LatLng> points, String customId) async {
assert(points.length < 3, '多边形的边界坐标点最少传3个');
await _channel.invokeMethod('addGeoFencePolygon', {
'points': points,
'customId': customId,
});
}