reject method Null safety

Future<V2TimCallback> reject(
  1. {required String inviteID,
  2. String? data}
)

Implementation

Future<V2TimCallback> reject({
  required String inviteID,
  String? data,
}) async {
  return V2TimCallback.fromJson(
    formatJson(
      await _channel.invokeMethod(
        "reject",
        buildParam(
          {
            "inviteID": inviteID,
            "data": data,
          },
        ),
      ),
    ),
  );
}