insertAsync method

Future<int> insertAsync(
  1. Point2f pt
)

Implementation

Future<int> insertAsync(Point2f pt) async {
  final p = calloc<ffi.Int>();
  return cvRunAsync0(
    (callback) => cimgproc.cv_Subdiv2D_insert(ref, pt.ref, p, callback),
    (c) {
      final rval = p.value;
      calloc.free(p);
      return c.complete(rval);
    },
  );
}