setOnExitCallback method

void setOnExitCallback(
  1. Function cb
)

Implementation

void setOnExitCallback(Function cb) => (onExitCallback = cb);