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) {}