onError method
You can describe the process when runZonedGuarded is set to true.
The object in which the error occurred is passed to error and stackTrace.
runZonedGuardedをtrueにした場合の処理を記述することができます。
errorとstackTraceにエラーが起きた際のオブジェクトが渡されます。
Implementation
void onError(Object error, StackTrace stackTrace) {}