setChatVariable static method

Future<bool> setChatVariable(
  1. String name,
  2. String value
)

Set a chat variable value.

Implementation

static Future<bool> setChatVariable(String name, String value) async {
  final result = await _requireAdapter.sendRequest(
    'workspace.setChatVariableVce',
    {'name': name, 'value': value},
  );
  return (result)['success'] as bool? ?? false;
}