addMethodCallDelegate

instance

channel

channel

In Objective-C:

Note:
  In release 2.10, the Task Queue API is only available on the master channel
  for iOS.

void

registerWithRegistrar

:(

NSObject

FlutterPluginRegistrar

>*

registrar

NSObject

FlutterTaskQueue

>*

taskQueue

[[

registrar

messenger

makeBackgroundTaskQueue

];

FlutterMethodChannel

channel

FlutterMethodChannel

methodChannelWithName

@"com.example.foo"

binaryMessenger:

registrar