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

dynamic runGuarded(f());