I couldn't find a way to override the default onPressed callback, I wanted to do something like, if the tag is active it can not be deactivated until a specific condition is met... but there is no way to get rid of the default onPressed to change active inactive value.
do let me know if there is a way to do that without conditionally working with pressEnabled property.
I couldn't find a way to override the default onPressed callback, I wanted to do something like, if the tag is active it can not be deactivated until a specific condition is met... but there is no way to get rid of the default onPressed to change active inactive value.
do let me know if there is a way to do that without conditionally working with pressEnabled property.