onError method

void onError(
  1. Object error,
  2. StackTrace stackTrace
)
inherited

You can describe the process when runZonedGuarded is set to true.

The object in which the error occurred is passed to error and stackTrace.

runZonedGuardedtrueにした場合の処理を記述することができます。

errorstackTraceにエラーが起きた際のオブジェクトが渡されます。

Implementation

void onError(Object error, StackTrace stackTrace) {}