Handle class

Represent handle values referring to resources

Constructors

Handle(int rep, {required bool own, Context? scope})

Properties

hashCode → int
The hash code for this object.
no setterinherited
lend_count ↔ int
The lend_count field maintains a count of the outstanding handles that were lent from this handle (by calls to borrow-taking functions). This count is used below to dynamically enforce the invariant that a handle cannot be dropped while it has currently lent out a borrow.
getter/setter pair
own → bool
final
rep → int
The rep field of Handle stores the representation value (currently fixed to i32) pass to resource.new for the resource that this handle refers to.
final
runtimeType → Type
A representation of the runtime type of the object.
no setterinherited
scope → Context?
final

Methods

noSuchMethod(Invocation invocation) → dynamic
Invoked when a nonexistent method or property is accessed.
inherited
toString() → String
A string representation of this object.
inherited

Operators

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