ToggleController constructor
ToggleController([
- bool value = false
Creates a ToggleController with an initial toggle state.
Parameters:
value
(bool, default: false): The initial toggle state.
Example:
// Create controller starting in off state
final controller = ToggleController();
// Create controller starting in on state
final controller = ToggleController(true);
Implementation
ToggleController([super.value = false]);