useUpdate function
Returns a function that forces component to re-build when called.
Implementation
VoidCallback useUpdate() {
final attempt = useState(0);
return () => attempt.value++;
}
Returns a function that forces component to re-build when called.
VoidCallback useUpdate() {
final attempt = useState(0);
return () => attempt.value++;
}