onData method

void onData(
  1. dynamic callback(
    1. dynamic data
    )
)

Implementation

void onData(callback(dynamic data)) {
  // ignore: deprecated_member_use_from_same_package
  _connectedClient.onOutgoing(callback);
}