setBadge method Null safety

Future<void> setBadge(
  1. {required int? badge}
)

iOS Only 设置应用 Badge(小红点)

@param {Int} badge

Implementation

Future<void> setBadge({required int? badge}) async {
  await _channel.invokeMethod('setBadge', {'badge': badge});
  return;
}