tryCatch function

void tryCatch(
  1. Function? f
)

Implementation

void tryCatch(Function? f) {
  try {
    f?.call();
  } catch (e, stack) {
    log('$e');
    log('$stack');
  }
}