kick method

Future<bool> kick(
  1. String? msg
)

kick this member from this room

Implementation

Future<bool> kick(
  String? msg,
) {
  final tmp1 = msg;
  var tmp0 = 0;
  var tmp2 = 0;
  var tmp4 = 0;
  var tmp5 = 0;
  var tmp6 = 0;
  tmp0 = _box.borrow();
  if (tmp1 == null) {
    tmp2 = 0;
  } else {
    tmp2 = 1;
    final tmp3 = tmp1;
    final tmp3_0 = utf8.encode(tmp3);
    tmp5 = tmp3_0.length;

    final ffi.Pointer<ffi.Uint8> tmp4_0 = _api.__allocate(tmp5 * 1, 1);
    final Uint8List tmp4_1 = tmp4_0.asTypedList(tmp5);
    tmp4_1.setAll(0, tmp3_0);
    tmp4 = tmp4_0.address;
    tmp6 = tmp5;
  }
  final tmp7 = _api._memberKick(
    tmp0,
    tmp2,
    tmp4,
    tmp5,
    tmp6,
  );
  final tmp9 = tmp7;
  final ffi.Pointer<ffi.Void> tmp9_0 = ffi.Pointer.fromAddress(tmp9);
  final tmp9_1 = _Box(_api, tmp9_0, "__Member_kick_future_drop");
  tmp9_1._finalizer = _api._registerFinalizer(tmp9_1);
  final tmp8 = _nativeFuture(tmp9_1, _api.__memberKickFuturePoll);
  return tmp8;
}