onDebug method

void onDebug(
  1. bool debug, {
  2. required String args,
})

Execute the function if the debug condition is true

Implementation

void onDebug(bool debug, {required String args}) {
  if (debug) {
    this(args);
  }
}