ScopedNativePointer class final

Native pointer value that is valid only while an owner-defined scope is live.

Constructors

ScopedNativePointer(int _address, {required void checkValid(), required String debugName})
Creates a scoped native pointer.
const

Properties

address → int
Pointer address after validating that the scope is still live.
no setter
hashCode → int
The hash code for this object.
no setterinherited
isNull → bool
Returns true when this pointer represents a null backend handle.
no setter
runtimeType → Type
A representation of the runtime type of the object.
no setterinherited

Methods

noSuchMethod(Invocation invocation) → dynamic
Invoked when a nonexistent method or property is accessed.
inherited
toNativePointer() → NativePointer
Copies the current address into an unscoped NativePointer.
toString() → String
A string representation of this object.
override

Operators

operator ==(Object other) → bool
The equality operator.
inherited