onError property

  1. @override
Stream<List<ComplyCubeError>> get onError
override

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

Implementation

@override
Stream<List<ComplyCubeError>> get onError =>
    errorsChannel.receiveBroadcastStream().map((events) => List.from(events)
        .map((event) => ComplyCubeError.fromJson(
            Map.castFrom<Object?, Object?, String, dynamic>(event)))
        .toList());