useUnmount function
void
useUnmount(
- void effect()
Implementation
void useUnmount(void Function() effect) {
useEffect(
() {
return () {
effect();
};
},
[],
);
}