onError method

  1. @override
Future<void> onError(
  1. Object? error
)
override

When an error event is send on the stream, the onError handler is called.

Implementation

@override
Future<void> onError(Object? error) async => await onMeasurement(
    Measurement.fromData(Error(message: error.toString())));