AudioResourceMixin mixin

A mixin that provides a finalizer for audio resources.

Implement this mixin and call setResourceFinalizer to automatically dispose.

Implemented types
Mixin applications

Properties

hashCode int
The hash code for this object.
no setterinherited
isDisposed bool
Whether this resource is already disposed.
no setter
resourceId int
The unique identifier of this resource.
latefinal
runtimeType Type
A representation of the runtime type of the object.
no setterinherited

Methods

clearResourceFinalizer() → void
Clears the finalizer for this resource.
noSuchMethod(Invocation invocation) → dynamic
Invoked when a nonexistent method or property is accessed.
inherited
setResourceFinalizer<T>(void onFinalize()) → void
Sets a finalizer for this resource.
throwIfDisposed() → void
Throws an AudioResourceDisposedException if this resource is already disposed.
toString() String
A string representation of this object.
inherited

Operators

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