toggleWithCallback method

void toggleWithCallback(
  1. VoidCallback callback
)

toggle the value of the ValueNotifier and run the provided function.

Implementation

void toggleWithCallback(VoidCallback callback) {
  toggle();
  callback();
}