getEventType method Null safety

String getEventType (
  1. EventTarget target
)

Gets the type of the event which this would listen for on the specified event target.

The target is necessary because some browsers may use different event names for the same purpose and the target allows differentiating browser support.

Implementation

String getEventType(EventTarget target) {
  return _eventType;
}