setBadge method
setBadge 支持ios android android 仅支持华为 vivo oppo
Implementation
Future<bool> setBadge(int badge, {bool badgeWithIOSIcon = true}) async {
if (!_supportPlatform) return false;
final bool? status = await _channel.invokeMethod<bool?>(
'setBadge', {'badge': badge, 'badgeWithIOSIcon': badgeWithIOSIcon});
return status ?? false;
}