onPanic static method

void onPanic(
  1. void cb(
    1. String
    )?
)

Sets callback to be fired whenever Rust code panics.

Implementation

static void onPanic(void Function(String)? cb) {
  // No-op.
}