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