onDispose property

List<dynamic Function(dynamic)> onDispose
final

List of methods that will be called when the object is dropped.

Implementation

final List<Function(dynamic)> onDispose = [];