trycatch.dart 212 B

1234567891011
  1. import 'dart:developer';
  2. extension FunctionUtils on Function {
  3. void callAndAbsorbError() {
  4. try {
  5. this.call();
  6. } catch (e, st) {
  7. log("Error in $this", error: e, stackTrace: st);
  8. }
  9. }
  10. }