closeEvent constant Null safety

EventStreamProvider<Event> const closeEvent

Static factory designed to expose close events to event handlers that are not necessarily instances of RtcDataChannel.

See EventStreamProvider for usage information.

Implementation

static const EventStreamProvider<Event> closeEvent =
    const EventStreamProvider<Event>('close')