toggleWithCallback method
toggle the value of the ValueNotifier and run the provided function.
Implementation
void toggleWithCallback(VoidCallback callback) {
toggle();
callback();
}
toggle the value of the ValueNotifier and run the provided function.
void toggleWithCallback(VoidCallback callback) {
toggle();
callback();
}