addData method

  1. @override
void addData(
  1. dynamic data
)
inherited

Implementation

@override
void addData(dynamic data) {
  dynamic messageData = data;
  if (messageData is TransferType<T>) {
    messageData.decode().then(_complete);
    return;
  } else if (T == dynamic) {
    messageData = materialize(messageData);
  }

  _complete(messageData);
}