menu
tf_shadcn_flutter package
documentation
shadcn_flutter_experimental.dart
SwitchController
SwitchController.new constructor
SwitchController.new constructor
dark_mode
light_mode
SwitchController
constructor
SwitchController
(
[
bool
value
=
false
])
Creates a
SwitchController
.
Parameters:
value
(
bool
, default:
false
): Initial switch state.
Implementation
SwitchController([super.value = false]);
tf_shadcn_flutter package
documentation
shadcn_flutter_experimental
SwitchController
SwitchController.new constructor
SwitchController class