onUncaughtException property Null safety

void Function(Object error, StackTrace stackTrace) onUncaughtException

Implementation

static void Function(Object error, StackTrace stackTrace) get onUncaughtException => (
      error,
      stackTrace,
    ) {
      log(
        'Error occurred during app startup',
        error: error,
        stackTrace: stackTrace,
      );
    };