setAttribute static method
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);
}