getOnException method Null safety

List<ExceptionHandler> getOnException()

Implementation

List<ExceptionHandler> getOnException() => _onException.toList();