SettingSwitchItem constructor

const SettingSwitchItem({
  1. Key? key,
  2. required String title,
  3. required bool value,
  4. required ValueChanged<bool>? onChanged,
  5. ItemPriority priority = ItemPriority.normal,
  6. String? description,
})

Implementation

const SettingSwitchItem({
  Key? key,
  required this.title,
  required this.value,
  required this.onChanged,
  this.priority = ItemPriority.normal,
  this.description,
}) : super(key: key);