ValueUpdate typedef
ValueUpdate =
dynamic Function(int updateValue)
A type definition for a callback function that updates the quantity value.
The ValueUpdate function takes an integer parameter updateValue
representing
the new quantity and returns a dynamic value. This allows flexibility in handling
the updated value, whether it's immediately applied or processed asynchronously.
Implementation
typedef ValueUpdate = dynamic Function(int updateValue);