notifySwitchChanged static method
void
notifySwitchChanged(
- OnBrnFormSwitchChanged? onSwitchChanged,
- BuildContext context,
- bool oldValue,
- bool newValue,
处理 开关 变化
Implementation
static void notifySwitchChanged(OnBrnFormSwitchChanged? onSwitchChanged,
BuildContext context, bool oldValue, bool newValue) {
if (onSwitchChanged != null) {
onSwitchChanged(oldValue, newValue);
}
}