onTap is callback which is send by user depend on requirement used to perform actions on tap required parameter for AnimateIcon
final Function onTap;