notifySwitchChanged static method

void notifySwitchChanged(
  1. OnBrnFormSwitchChanged? onSwitchChanged,
  2. BuildContext context,
  3. bool oldValue,
  4. bool newValue,
)

处理 开关 变化

Implementation

static void notifySwitchChanged(OnBrnFormSwitchChanged? onSwitchChanged,
    BuildContext context, bool oldValue, bool newValue) {
  if (onSwitchChanged != null) {
    onSwitchChanged(oldValue, newValue);
  }
}