DisposableScopedObjects class
Disposable ScopedObjects which will clear all the objects from ScopedObjects in dispose
- Inheritance
-
- Object
- ScopedObjects
- DisposableScopedObjects
- Mixed in types
Constructors
Properties
- hashCode → int
-
The hash code for this object.
no setterinherited
-
keys
→ Iterable<
ScopedKey> -
Get all the
ScopedKey
sno setterinherited -
pool
→ Map<
ScopedKey, ScopedDisposableObjectMixin?> -
finalinherited
- runtimeType → Type
-
A representation of the runtime type of the object.
no setterinherited
-
values
→ Iterable<
ScopedDisposableObjectMixin> -
Get all the
ScopedDisposableObjectMixin
objectsno setterinherited
Methods
-
clear(
) → Future< void> -
Clear all the ScopedDisposableObjectMixin objects, which will trigger the
DisposableObject.dispose
inherited
-
dispose(
) → Future< void> -
Callback when the object is being disposed. DO NOT call this function directly.
If you want to mark the object as disposed, use the ScopedDisposableObjectMixin.markDisposed
instead.
override
-
get<
T extends ScopedDisposableObjectMixin> (ScopedKey key) → T? -
Get the ScopedDisposableObjectMixin object by key
inherited
-
markDisposed(
) → void -
Explicitly mark the object as disposed, which will remove the object from
the ScopedObjects.
inherited
-
noSuchMethod(
Invocation invocation) → dynamic -
Invoked when a nonexistent method or property is accessed.
inherited
-
putIfAbsent<
T extends ScopedDisposableObjectMixin> (ScopedKey key, DisposableObjectProvider provider) → T -
Put an ScopedDisposableObjectMixin object if absent
inherited
-
remove<
T extends ScopedDisposableObjectMixin> (ScopedKey key) → T? -
Remove the ScopedDisposableObjectMixin object by key
inherited
-
toString(
) → String -
A string representation of this object.
inherited
Operators
-
operator ==(
Object other) → bool -
The equality operator.
inherited