onChanged property
A callback function that is invoked whenever the quantity changes.
It receives the updated quantity as an integer. This callback can return a new integer value to override the incremented or decremented value. It supports both synchronous and asynchronous operations.
Implementation
final ValueUpdate? onChanged;