This commit is contained in:
lollipopkit
2023-12-20 11:34:18 +08:00
parent eec13678a1
commit 6924290626
20 changed files with 104 additions and 105 deletions

View File

@@ -28,7 +28,7 @@ class StoreSwitch extends StatelessWidget {
return Switch(
value: value,
onChanged: (value) async {
if (validator != null && validator?.call(value) != true) return;
if (validator?.call(value) == false) return;
await callback?.call(value);
prop.put(value);
},