tryCatch function

void tryCatch(
  1. Function? f
)

Implementation

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