useBoolean function

ToggleState useBoolean(
  1. bool initialValue
)

Flutter state hook that tracks value of a bool. useBoolean is an alias for useToggle.

Implementation

ToggleState useBoolean(bool initialValue) {
  return useToggle(initialValue);
}