setBackgroundImage method

void setBackgroundImage(
  1. UIImage? backgroundImage, {
  2. required UIBarPosition forToolbarPosition,
  3. required UIBarMetrics barMetrics,
})

setBackgroundImage:forToolbarPosition:barMetrics:

Implementation

void setBackgroundImage(
  UIImage? backgroundImage, {
  required UIBarPosition forToolbarPosition,
  required UIBarMetrics barMetrics,
}) {
  final _$$ref = object$.ref;
  final _$$ref$1 = backgroundImage?.ref;
  objc.checkOsVersionInternal('UIToolbar.setBackgroundImage:forToolbarPosition:barMetrics:', iOS: (false, (5, 0, 0)));
  _objc_msgSend_1vqayzl(
    _$$ref.pointer,
    _sel_setBackgroundImage_forToolbarPosition_barMetrics_,
    _$$ref$1?.pointer ?? ffi.nullptr,
    forToolbarPosition.value,
    barMetrics.value,
  );
}