setBadgeCounts static method
Updates the badge count of each page's tab. Null or 0 clears a badge.
Implementation
static Future<void> setBadgeCounts(List<int?> badgeCounts) async {
if (!_shown) return;
await _channel.invokeMethod('setBadgeCounts', {'badgeCounts': badgeCounts});
}