invite method

Future<V2TimValueCallback<String>> invite({
  1. required String invitee,
  2. required String data,
  3. @required int timeout = 30,
  4. @required bool onlineUserOnly = false,
})

Implementation

Future<V2TimValueCallback<String>> invite({
  required String invitee,
  required String data,
  @required int timeout = 30,
  @required bool onlineUserOnly = false,
}) async {
  return V2TimValueCallback<String>.fromJson(
    formatJson(
      await _channel.invokeMethod(
        "invite",
        buildParam(
          {
            "invitee": invitee,
            "data": data,
            "timeout": timeout,
            "onlineUserOnly": onlineUserOnly,
          },
        ),
      ),
    ),
  );
}