ScopedObjects class
Scope the objects which mixin with the ScopedDisposableObjectMixin, all objects will be disposed after clear
- Implementers
Constructors
Properties
- hashCode → int
-
The hash code for this object.
no setterinherited
-
keys
→ Iterable<
ScopedKey> -
Get all the
ScopedKey
sno setter -
pool
→ Map<
ScopedKey, ScopedDisposableObjectMixin?> -
final
- runtimeType → Type
-
A representation of the runtime type of the object.
no setterinherited
-
values
→ Iterable<
ScopedDisposableObjectMixin> -
Get all the
ScopedDisposableObjectMixin
objectsno setter
Methods
-
clear(
) → Future< void> - Clear all the ScopedDisposableObjectMixin objects, which will trigger the DisposableObject.dispose
-
get<
T extends ScopedDisposableObjectMixin> (ScopedKey key) → T? - Get the ScopedDisposableObjectMixin object by key
-
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
-
remove<
T extends ScopedDisposableObjectMixin> (ScopedKey key) → T? - Remove the ScopedDisposableObjectMixin object by key
-
toString(
) → String -
A string representation of this object.
inherited
Operators
-
operator ==(
Object other) → bool -
The equality operator.
inherited