onCancelled property

  1. @override
Stream<ComplyCubeError> get onCancelled
override

Can only be listened once. If have more than one subscription, only the last subscription can receive events.

Implementation

@override
Stream<ComplyCubeError> get onCancelled => errorChannel
    .receiveBroadcastStream()
    .map((event) => ComplyCubeError.fromJson(
        Map.castFrom<Object?, Object?, String, dynamic>(event)));