getBadgeCount method
Get the current badge count
Implementation
@override
Future<int> getBadgeCount() async {
try {
final result = await methodChannel.invokeMethod<int>('getBadgeCount');
return result ?? 0;
} on PlatformException catch (e) {
debugPrint('Error getting badge count: ${e.message}');
return 0;
}
}