dispose abstract method

  1. @mustCallSuper
  2. @override
void dispose()

Disposes this node and cleans up resources.

This method marks the node as disposed, invokes onDispose for custom cleanup, and notifies the finalizer system so chained disposers can run.

Example:

final disposable = MyDisposableNode();
disposable.dispose(); // Cleanup happens automatically

Disposes this node and cleans up resources.

This method marks the node as disposed, invokes onDispose for custom cleanup, and notifies the finalizer system so chained disposers can run.

Example:

final disposable = MyDisposableNode();
disposable.dispose(); // Cleanup happens automatically

Implementation

@mustCallSuper
@override
void dispose();