handleMethodCall method

  1. @visibleForTesting
Future handleMethodCall(
  1. MethodCall call
)

Callback used to process incoming method calls from the native method channel.

Implementation

@visibleForTesting
Future<dynamic> handleMethodCall(MethodCall call) async {
  switch (call.method) {
    case _updateRemoteConfigMethodName:
      _handleUpdateRemoteConfigCall(call);
      break;

    default:
      logInternalError(
        'Embrace MethodChannel received unknown MethodCall from host SDK.',
        call.method,
      );
      break;
  }
}