onDispose property
List of methods that will be called when the object is dropped.
Implementation
final List<Function(dynamic)> onDispose = [];
List of methods that will be called when the object is dropped.
final List<Function(dynamic)> onDispose = [];