dynamic runGuarded(
dynamic f()
)

Executes the given function f in this zone.

Same as run but catches uncaught errors and gives them to handleUncaughtError.

Source

/**
 * Executes the given function [f] in this zone.
 *
 * Same as [run] but catches uncaught errors and gives them to
 * [handleUncaughtError].
 */
dynamic runGuarded(f());