EventChannelExtension extension

A custom EventChannel with default error handling logic.

on

Methods

receiveGuardedBroadcastStream({dynamic arguments, required dynamic onError(Object error, StackTrace stackTrace)}) Stream

Available on EventChannel, provided by the EventChannelExtension extension

Similar to receiveBroadcastStream, but with enforced error handling.