floatCompleter function

void floatCompleter(
  1. Completer<double> completer,
  2. VoidPtr p
)

Implementation

void floatCompleter(Completer<double> completer, VoidPtr p) {
  final value = p.cast<ffi.Float>().value;
  calloc.free(p);
  completer.complete(value);
}