finalizer property

Finalizer<Object?> finalizer
final

Implementation

static final finalizer = Finalizer((mailbox) {
  final p = mailbox! as Pointer<_MailboxRepr>;
  calloc
    ..free(p.ref.buffer)
    ..free(p);
});