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