Disposable class

Identifies that the graph object can be disposed after the life of the component ends. Disposable object has two disposal strategies:

  1. if the object has a dispose method and the jugger only needs to call it;
  2. if the object has a custom disposal and for this need to declare a handle method for disposal.

Constructors

Disposable({required DisposalStrategy strategy})
const
factory

Properties

hashCode int
The hash code for this object.
no setterinherited
runtimeType Type
A representation of the runtime type of the object.
no setterinherited
strategy DisposalStrategy
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