usePrevious<T> function

T? usePrevious<T>(
  1. T val
)

Returns the previous value passed to usePrevious (from the previous widget build).

Implementation

T? usePrevious<T>(T val) {
  return use(_PreviousHook(val));
}