thumbnailInfo method

MsgDraft thumbnailInfo(
  1. int? width,
  2. int? height,
  3. String? mimetype,
  4. int? size,
)

available for only image/video/file/location

Implementation

MsgDraft thumbnailInfo(
  int? width,
  int? height,
  String? mimetype,
  int? size,
) {
  final tmp1 = width;
  final tmp5 = height;
  final tmp9 = mimetype;
  final tmp15 = size;
  var tmp0 = 0;
  var tmp2 = 0;
  var tmp4 = 0;
  var tmp6 = 0;
  var tmp8 = 0;
  var tmp10 = 0;
  var tmp12 = 0;
  var tmp13 = 0;
  var tmp14 = 0;
  var tmp16 = 0;
  var tmp18 = 0;
  tmp0 = _box.borrow();
  if (tmp1 == null) {
    tmp2 = 0;
  } else {
    tmp2 = 1;
    final tmp3 = tmp1;
    tmp4 = tmp3;
  }
  if (tmp5 == null) {
    tmp6 = 0;
  } else {
    tmp6 = 1;
    final tmp7 = tmp5;
    tmp8 = tmp7;
  }
  if (tmp9 == null) {
    tmp10 = 0;
  } else {
    tmp10 = 1;
    final tmp11 = tmp9;
    final tmp11_0 = utf8.encode(tmp11);
    tmp13 = tmp11_0.length;

    final ffi.Pointer<ffi.Uint8> tmp12_0 = _api.__allocate(tmp13 * 1, 1);
    final Uint8List tmp12_1 = tmp12_0.asTypedList(tmp13);
    tmp12_1.setAll(0, tmp11_0);
    tmp12 = tmp12_0.address;
    tmp14 = tmp13;
  }
  if (tmp15 == null) {
    tmp16 = 0;
  } else {
    tmp16 = 1;
    final tmp17 = tmp15;
    tmp18 = tmp17;
  }
  final tmp19 = _api._msgDraftThumbnailInfo(
    tmp0,
    tmp2,
    tmp4,
    tmp6,
    tmp8,
    tmp10,
    tmp12,
    tmp13,
    tmp14,
    tmp16,
    tmp18,
  );
  final tmp21 = tmp19;
  final ffi.Pointer<ffi.Void> tmp21_0 = ffi.Pointer.fromAddress(tmp21);
  final tmp21_1 = _Box(_api, tmp21_0, "drop_box_MsgDraft");
  tmp21_1._finalizer = _api._registerFinalizer(tmp21_1);
  final tmp20 = MsgDraft._(_api, tmp21_1);
  return tmp20;
}