exit method

void exit(
  1. T? context, [
  2. EngineCallback? callback
])

Calls onExit with the given context (if they are both non-null).

Implementation

void exit(T? context, [EngineCallback? callback]) {
  if (onExit != null && context != null) onExit!(context, callback);
}