void boolCompleter(Completer<bool> completer, VoidPtr p) { final value = p.cast<ffi.Bool>().value; calloc.free(p); completer.complete(value); }