onFinally method

  1. @override
FutureOr<void> onFinally(
  1. A arg
)
override

Hook method that is called after the next handler returns or throws, after the onReturn / onError hook has run.

Errors thrown from this method are ignored.

Implementation

@override
FutureOr<void> onFinally(final A arg) {
  if (_onFinally != null) {
    return _onFinally(arg);
  }
}