ToggleButton constructor

const ToggleButton({
  1. Key? key,
  2. required bool checked,
  3. required ValueChanged<bool>? onChanged,
  4. Widget? child,
  5. ToggleButtonThemeData? style,
  6. String? semanticLabel,
  7. FocusNode? focusNode,
  8. bool autofocus = false,
})

Implementation

const ToggleButton({
  Key? key,
  required this.checked,
  required this.onChanged,
  this.child,
  this.style,
  this.semanticLabel,
  this.focusNode,
  this.autofocus = false,
}) : super(key: key);