cast<U extends NativeType> method Null safety

Pointer<U> cast<U extends NativeType>()

Casts this pointer to an other type.

Implementation

Pointer<U> cast<U extends NativeType>() => new Pointer<U>._(
    address, boundMemory, _isUnsizedType<U>() ? null : sizeOf<U>());