invite method Null safety
- {required String invitee,
- required String data,
- int timeout = 30,
- bool onlineUserOnly = false,
- OfflinePushInfo? offlinePushInfo}
Implementation
Future<V2TimValueCallback<String>> invite({
required String invitee,
required String data,
int timeout = 30,
bool onlineUserOnly = false,
OfflinePushInfo? offlinePushInfo,
}) async {
return V2TimValueCallback<String>.fromJson(
formatJson(
await _channel.invokeMethod(
"invite",
buildParam(
{
"invitee": invitee,
"data": data,
"timeout": timeout,
"onlineUserOnly": onlineUserOnly,
"offlinePushInfo": offlinePushInfo?.toJson()
},
),
),
),
);
}