sendSystemMessage method

Future<void> sendSystemMessage(
  1. int recipientId, {
  2. Map<String, String>? properties,
})

Implementation

Future<void> sendSystemMessage(int recipientId, {Map<String, String>? properties}) async {
  Map<String, Object> data = Map();

  data["recipientId"] = recipientId;

  if (properties != null) {
    data["properties"] = properties;
  }
  await _chatModule.invokeMethod(SEND_SYSTEM_MESSAGE_METHOD, data);
}