Checkbox constructor

const Checkbox({
  1. Key? key,
  2. required CheckboxState state,
  3. required ValueChanged<CheckboxState>? onChanged,
  4. Widget? leading,
  5. Widget? trailing,
  6. double scaledLeadingPadding = 8,
  7. bool tristate = false,
})

Implementation

const Checkbox({
  super.key,
  required this.state,
  required this.onChanged,
  this.leading,
  this.trailing,
  this.scaledLeadingPadding = 8,
  this.tristate = false,
});