getNearestPointToLine method Null safety

Future getNearestPointToLine(
  1. List polyLine,
  2. dynamic coord
)

返回某点距线上最近的点

List<BMFCoordinate> polyLine 折线

BMFCoordinate coord 点

Implementation

static Future<BMFCoordinate?> getNearestPointToLine(
    List<BMFCoordinate> polyLine, BMFCoordinate coord) async {
  return await BMFUtilsCalculateDispatcher.getNearestPointToLine(
      _calcChannel, polyLine, coord);
}