preferredStyle property

UISwitchStyle get preferredStyle

Request a style for the switch. If the style changed, then the switch may resize.

Implementation

UISwitchStyle get preferredStyle {
  objc.checkOsVersionInternal('UISwitch.preferredStyle', iOS: (false, (14, 0, 0)));
  final _ret = _objc_msgSend_ums1js(this.ref.pointer, _sel_preferredStyle);
  return UISwitchStyle.fromValue(_ret);
}
set preferredStyle (UISwitchStyle value)

Request a style for the switch. If the style changed, then the switch may resize.

Implementation

set preferredStyle(UISwitchStyle value) {
  objc.checkOsVersionInternal('UISwitch.setPreferredStyle:', iOS: (false, (14, 0, 0)));
  _objc_msgSend_1bkwtnu(this.ref.pointer, _sel_setPreferredStyle_, value.value);
}