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