if onInfoTap is not null an action will be added to the SnackBar when an info message occur
final void Function()? onInfoTap;