onExit

void onExit(

  1. void callback(
    1. int? code
    )
)

Listen for process exit. Returns the exit code (null if killed).

Implementation

void onExit(void Function(int? code) callback) {
  _jsProcess._onClose(callback);
}