DOMException constructor

DOMException([
  1. String? message = '',
  2. String? name = 'Error'
])

Implementation

factory DOMException([String? message = '', String? name = 'Error']) =>
    DOMException._(message ?? '', name ?? 'Error');