getConfig method

Future<PreferenceCenterConfig?> getConfig(
  1. String preferenceCenterID
)

Returns the configuration of the Preference Center with the given preferenceCenterID.

Implementation

Future<PreferenceCenterConfig?> getConfig(String preferenceCenterID) async {
  var config = await _module.channel.invokeMethod(
      'preferenceCenter#getConfig', preferenceCenterID);
  return PreferenceCenterConfig.fromJson(Map<String, dynamic>.from(config));
}