size property Null safety

int? size
@optional, read / write

The size of this object in the heap.

If an object is not heap-allocated, then this field is omitted.

Note that the size can be zero for some objects. In the current VM implementation, this occurs for small integers, which are stored entirely within their object pointers.


int? size;