destroyMethods property

List<String> destroyMethods
final

List of destruction methods to invoke when the pod is destroyed.

These methods should clean up resources like file handles or connections.

Example:

@Pod(destroyMethods: ['dispose'])
Connection createConnection() => Connection();

Implementation

final List<String> destroyMethods;