setCustomAttributes method

Future<void> setCustomAttributes(
  1. Map<String, dynamic>? customAttributes
)

Setting Custom Attribute Parameters

Implementation

Future<void> setCustomAttributes(Map<String, dynamic>? customAttributes) {
  Map<String, String> map = Map();
  customAttributes?.forEach((String key, dynamic value) {
    map[key] = value.toString();
  });
  return _channel
      .invokeMethod(
      'setCustomAttributes', <String, dynamic>{'customAttributes': map});
}