complete method

  1. @override
void complete({
  1. LogicValue? slvErr,
  2. LogicValue? data,
})
override

Called by a completer when a transfer is completed.

Implementation

@override
void complete({LogicValue? slvErr, LogicValue? data}) {
  if (_returnedData != null) {
    throw RohdHclException('Packet is already completed.');
  }

  _returnedData = data;

  super.complete(slvErr: slvErr);
}