setMethodChannel method Null safety

void setMethodChannel(
  1. MethodChannel channel
)

第一步 先设置 channel The first step is to set the channel

Implementation

void setMethodChannel(MethodChannel channel) {
  _channel = channel;
}