badgeColor property

UIColor? get badgeColor

If this item displays a badge, this color will be used for the badge's background. If set to nil, the default background color will be used instead.

Implementation

UIColor? get badgeColor {
  objc.checkOsVersionInternal('UITabBarItem.badgeColor', iOS: (false, (10, 0, 0)));
  final $ret = _objc_msgSend_151sglz(object$.ref.pointer, _sel_badgeColor);
  return $ret.address == 0 ? null : UIColor.fromPointer($ret, retain: true, release: true);
}
set badgeColor (UIColor? value)

If this item displays a badge, this color will be used for the badge's background. If set to nil, the default background color will be used instead.

Implementation

set badgeColor(UIColor? value) {
  objc.checkOsVersionInternal('UITabBarItem.setBadgeColor:', iOS: (false, (10, 0, 0)));
  _objc_msgSend_xtuoz7(object$.ref.pointer, _sel_setBadgeColor_, value?.ref.pointer ?? ffi.nullptr);
}