backgroundImageForState method

UIImage? backgroundImageForState(
  1. UIControlState state, {
  2. required UIBarMetrics barMetrics,
})

backgroundImageForState:barMetrics:

Implementation

UIImage? backgroundImageForState(UIControlState state, {required UIBarMetrics barMetrics}) {
  objc.checkOsVersionInternal('UIBarButtonItem.backgroundImageForState:barMetrics:', iOS: (false, (5, 0, 0)));
  final _ret = _objc_msgSend_1mmfvr1(
    this.ref.pointer,
    _sel_backgroundImageForState_barMetrics_,
    state.value,
    barMetrics.value,
  );
  return _ret.address == 0 ? null : UIImage.castFromPointer(_ret, retain: true, release: true);
}