addHandler method

dynamic addHandler (
  1. ErrorHandler handler
)

handler Error Handler

Implementation

addHandler(ErrorHandler handler) {
  final type = handler.getType().toString();
  assert(!_handlers.containsKey(type),
      'ErrorHandler for Type ${type} is already registered.');

  _handlers[type] = handler;
}