DoChangeInterceptor typedef

DoChangeInterceptor = bool Function(int value, CountStepperActionType actionType)

是否执行数量更改,数量拦截器,当返回false的时候,则不执行数量修改,true则执行数量更改 当返回false的时候,不会进入onChanged回调 value - 将要修改的数量 actionType - 操作类型,有三种 CountStepperActionType ,加,减,自定义输入

Implementation

typedef DoChangeInterceptor = bool Function(int value, CountStepperActionType actionType);