duration method
- int value
available for only audio/video
Implementation
MsgDraft duration(
int value,
) {
final tmp1 = value;
var tmp0 = 0;
var tmp2 = 0;
tmp0 = _box.borrow();
tmp2 = tmp1;
final tmp3 = _api._msgDraftDuration(
tmp0,
tmp2,
);
final tmp5 = tmp3;
final ffi.Pointer<ffi.Void> tmp5_0 = ffi.Pointer.fromAddress(tmp5);
final tmp5_1 = _Box(_api, tmp5_0, "drop_box_MsgDraft");
tmp5_1._finalizer = _api._registerFinalizer(tmp5_1);
final tmp4 = MsgDraft._(_api, tmp5_1);
return tmp4;
}