extend BasicMessageChannel
1 BasicMessageChannel
2 MethodChannel
3 EventChannel
4 OptionalMethodChannel
5 SystemChannels
extend MessageCodec
1 StandardMessageCodec
2 JSONMessageCodec
3 BinaryCodec
4 StringCodec
供 BasicMessageChannel(name=’’ , codec= ) 使用
extend MethodCodec
1 StandardMethodCodec
2 JSONMethodCodec
供 MethodChannel(name=’’ , codec= ) 使用
供 EventChannel(name=’’ , codec= ) 使用
供 OptionalMethodChannel(name=’’ , codec= ) 使用
以下是 SystemChannels提供静态实例
1
static const MethodChannel navigation = MethodChannel(
‘flutter/navigation’,
JSONMethodCodec(),
);
2
static const MethodChannel platform