getLayerAsync method

Future<Layer> getLayerAsync(
  1. int index
)

Implementation

Future<Layer> getLayerAsync(int index) async {
  final rval = cvRunAsync<Layer>(
    (callback) => cffi.Net_GetLayer_Async(ref, index, callback),
    (c, result) => c.complete(Layer.fromPointer(result.cast<cvg.Layer>())),
  );
  return rval;
}