setSFMCCredentials method

  1. @override
Future<String?> setSFMCCredentials(
  1. Map<String, String> credentials
)
override

The function setSFMCCredentials sets the SFMC credentials using the provided map of credentials. @param {Map<String, String>} credentials - The credentials parameter is a Map object that contains key-value pairs of SFMC credentials. The keys represent the credential names (e.g., "clientId", "clientSecret", "accessToken"), and the values represent the corresponding credential values. @returns The method is returning a Future object that resolves to a String or null.

Implementation

@override
Future<String?> setSFMCCredentials(Map<String, String> credentials) async {
  final returnVal = await methodChannel.invokeMethod<String>(
      'setSFMCCredentials', credentials);
  return returnVal;
}