catchAsWarning function

void catchAsWarning(
  1. void func()
)

Implementation

void catchAsWarning(void Function() func) {
  try {
    func();
  } catch (e, stack) {
    Fimber.w('$e', stacktrace:  stack);
  }
}