Disposable class

Represents a type which can release resources, such as event listening or a timer.

Implementers
Available extensions
Annotations
  • @JS()
  • @staticInterop

Constructors

Disposable(dynamic callOnDispose())
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

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

Static Methods

from([Iterable? disposableLikes]) Disposable
Combine many disposable-likes into one. You can use this method when having objects with a dispose function which aren't instances of Disposable.