toInt32 property

int? get toInt32

Implementation

int? get toInt32 {
  final pres = calloc.call<Int32>(sizeOf<Int32>());
  final ret = JS_ToInt32(_ctx.ref, pres, _ref.ref);
  if (ret != 0) return null;
  try {
    return pres.value;
  } finally {
    calloc.free(pres);
  }
}