MethodChannel class Null safety. A named channel for communicating with platform plugins using asynchronous method calls . Method calls are encoded into binary before being sent, and binary results received are decoded into Dart values. The MethodCodec used must be compatible with the one used by the platform plugin.