setAttribute static method

Future<void> setAttribute(
  1. String key,
  2. String value
)

Records an attribute that will be added to the session.

NOTE: The SDK limits you to storing 64 attribute keys. Adding more than 64 will fail and return false.

Implementation

static Future<void> setAttribute(String key, String value) async {
  TestFairyBase.prepareTwoWayInvoke();

  final Map<String, String> args = <String, String>{
    'key': key,
    'value': value
  };

  await TestFairyBase.channel.invokeMethod<void>('setAttribute', args);
}