yDoCrash function

void yDoCrash(
  1. dynamic message, {
  2. Object? obj,
})

Implementation

void yDoCrash(dynamic message, {Object? obj}) {
  if (!YConfig.catchCrash) return;
  yLog("${obj != null ? "\n$obj" : ""}\n$message");
  _getPlugin()!.doCrash(message.toString());
}