RefCountedJs3dController class abstract
Reference-counting plumbing for controllers managed by a Js3dControllerRegistry.
- Inheritance
-
- Object
- ChangeNotifier
- Js3dController
- RefCountedJs3dController
- Implementers
Constructors
Properties
- hashCode → int
-
The hash code for this object.
no setterinherited
- hasListeners → bool
-
Whether any listeners are currently registered.
no setterinherited
- isDisposedCtrl → bool
-
Whether disposeInternal has run.
no setter
- runtimeType → Type
-
A representation of the runtime type of the object.
no setterinherited
- sceneId → String
-
This controller's scene id.
no setter
Methods
-
addListener(
VoidCallback listener) → void -
Register a closure to be called when the object changes.
inherited
-
addRef(
) → void - Registers one more holder of this controller.
-
apply(
Js3dCommand command) → void -
Applies a command to the scene.
inherited
-
dispose(
) → void -
Disposes any resources owned by this scene.
inherited
-
disposeInternal(
) → void - Host hook: release native/scene resources (called once, when the last reference is gone).
-
dropRef(
) → int - Removes one holder; returns the remaining count.
-
noSuchMethod(
Invocation invocation) → dynamic -
Invoked when a nonexistent method or property is accessed.
inherited
-
notifyListeners(
) → void -
Call all the registered listeners.
inherited
-
raycastAt(
Offset ndc) → Map< String, dynamic> ? -
Attempts to pick a model at normalized device coordinates
ndc(x/y in[-1, 1], y up), used by tap picking (jsr.scene3d.onTap).inherited -
removeListener(
VoidCallback listener) → void -
Remove a previously registered closure from the list of closures that are
notified when the object changes.
inherited
-
toString(
) → String -
A string representation of this object.
inherited
Operators
-
operator ==(
Object other) → bool -
The equality operator.
inherited