disposer property

(void Function(LocalPotteryObjects)?) disposer

A function called when this LocalPottery is removed from the tree permanently.

LocalPottery, unlike Pottery, does not automatically discard the objects that were created by the factories passed to the pots argument. Use this disposer to specify a callback function to clean up the objects like ValueNotifiers, which are supposed to be disposed of when no longer used.


final void Function(LocalPotteryObjects)? disposer;