CustomDisposable class

Executes disposeCallback when IDisposable.dispose called

Inheritance
Available Extensions

Constructors

CustomDisposable(DisposeCallback disposeCallback)
Default constructor

Properties

disposeCallback DisposeCallback
Callback called when IDisposable.dispose executes
final
hashCode int
The hash code for this object.
no setterinherited
isDisposed bool
is dispose was already called
getter/setter pairinherited
runtimeType Type
A representation of the runtime type of the object.
no setterinherited

Methods

dispose() Future<void>
free resources. Do nothing if isDisposed already true
inherited
noSuchMethod(Invocation invocation) → dynamic
Invoked when a nonexistent method or property is accessed.
inherited
performDispose() Future<void>
actually dispose resources called in dispose() after isDisposed check
override
toString() String
A string representation of this object.
inherited

Operators

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