Skip to content

DataChannel 继承自: ABC

Abstract widget-facing byte channel.

方法 ​

名称类型默认值说明
on_bytesNone—Register a handler for bytes pushed from Dart. Pass None to clear. The handler runs synchronously on whatever thread the transport delivers from — push heavy work to a queue/worker.
sendNone—Send bytes Python → Dart. Fire-and-forget.
closeNone—Release the channel. Idempotent.

关注我,学习大模型、大数据、Python等热门技术。