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(object$.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(object$.ref.pointer, _sel_setPreferredStyle_, value.value);
}