backgroundImageForToolbarPosition method

UIImage? backgroundImageForToolbarPosition(
  1. UIBarPosition topOrBottom, {
  2. required UIBarMetrics barMetrics,
})

backgroundImageForToolbarPosition:barMetrics:

Implementation

UIImage? backgroundImageForToolbarPosition(UIBarPosition topOrBottom, {required UIBarMetrics barMetrics}) {
  final _$$ref = object$.ref;
  objc.checkOsVersionInternal('UIToolbar.backgroundImageForToolbarPosition:barMetrics:', iOS: (false, (5, 0, 0)));
  final $ret = _objc_msgSend_1d44cen(
    _$$ref.pointer,
    _sel_backgroundImageForToolbarPosition_barMetrics_,
    topOrBottom.value,
    barMetrics.value,
  );
  return $ret.address == 0 ? null : UIImage.fromPointer($ret, retain: true, release: true);
}