start method

  1. @override
void start(
  1. void onDataReceived(
    1. Uint8List data
    ), {
  2. void onDone()?,
  3. void onError(
    1. Object? error
    )?,
})
override

Implementation

@override
void start(void Function(Uint8List data) onDataReceived, {void Function()? onDone, void Function(Object? error)? onError}) {
  if (subscription != null) {
    throw Exception("Already started");
  }

  subscription = input.listen(onDataReceived, onError: onError, onDone: onDone, cancelOnError: true);
}