findNearestPinpoints
Future<void> findNearestPinpoints ({required Map<String, dynamic> center, required FindNearestPinpointsCallback findNearestPinpointsCallback})
Find the nearest pinpoints from a point.
Implementation
Future<void> findNearestPinpoints(
{required Map<String, dynamic> center,
required FindNearestPinpointsCallback
findNearestPinpointsCallback}) async {
try {
final List<dynamic> result = await _channel
.invokeMethod('findNearestPinpoints', {"center": center});
findNearestPinpointsCallback(result);
print("Result(findNearestPinpoints) from native: $result");
} on PlatformException catch (e) {
print("Error from native: $e.message");
}
}