setMethodCallHandler method
- {ValueChanged<
FlutterMobileIMSDKMethod> handler}
Implementation
static setMethodCallHandler({ValueChanged<FlutterMobileIMSDKMethod> handler}) {
if (handler != null) {
_channel.setMethodCallHandler((call) async {
handler.call(FlutterMobileIMSDKMethod.fromMethodCall(call));
});
} else {
_channel.setMethodCallHandler(null);
}
}