usePrevious<T> function
T?
usePrevious<T>(
- T val
Returns the previous value passed to usePrevious (from the previous widget build
).
Implementation
T? usePrevious<T>(T val) {
return use(_PreviousHook(val));
}