Add app badge count
The app badge count, when set, can be seen on your app's icon on a user's device. Amplify provides you with simple helpers to manipulate this number.
getBadgeCount to get the current app badge count. You might need to do this to calculate the value when setting the badge count.
1final count = await Amplify.Notifications.Push.getBadgeCount();
setBadgeCount to set the current app badge count. Setting the badge count to
0 (zero) will remove the badge from your app's icon.