PostDestructionChecker class abstract

Used to check when an object got destructed.

Example:

class YourClass extends PostDestructionChecker {
  @override
  void onPostDestruction() {
    print('Your class has been destructed/no longer exists');
  }
}

final yourClass = YourClass();

Constructors

PostDestructionChecker()

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
onPostDestruction() → void
Implement this method to define the action to be taken after the object is destructed.
toString() String
A string representation of this object.
inherited

Operators

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