ObjectPostDestructionChecker class
Used to check when an object got destructed.
Example:
final object = <dynamic, dynamic>{};
final checker = ObjectPostDestructionChecker(object, (){
print('object has been destructed/no longer exists');
});
Constructors
- ObjectPostDestructionChecker(Object object, void onPostDestruction())
- Creates an ObjectPostDestructionChecker instance.
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