readyStateChangeEvent constant Null safety

EventStreamProvider<Event> const readyStateChangeEvent

Static factory designed to expose readystatechange events to event handlers that are not necessarily instances of HttpRequest.

See EventStreamProvider for usage information.

Implementation

static const EventStreamProvider<Event> readyStateChangeEvent =
    const EventStreamProvider<Event>('readystatechange')