accept method Null safety

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

Implementation

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