registerInboundAdapter static method

void registerInboundAdapter(
  1. String type,
  2. dynamic decode(
    1. dynamic payload
    )
)

Register a Python -> Dart adapter.

Implementation

static void registerInboundAdapter(
  String type,
  dynamic Function(dynamic payload) decode,
) {
  _inboundAdapters[type] = _InboundAdapter(type: type, decode: decode);
}