writeEvent constant Null safety

EventStreamProvider<ProgressEvent> const writeEvent

Static factory designed to expose write events to event handlers that are not necessarily instances of FileWriter.

See EventStreamProvider for usage information.

Implementation

static const EventStreamProvider writeEvent =
    const EventStreamProvider('write')