switchFormEntry method
Switch/toggle form field
Implementation
Widget switchFormEntry({
String title = 'Switch',
String subTitle = 'Toggle option',
required Function(bool) onToggle,
bool defaultValue = false,
}) {
return InteractiveFormEntries.switchFormEntry(
title: title,
subTitle: subTitle,
onToggle: onToggle,
defaultValue: defaultValue,
enabled: isEdit,
formKey: widget.formKey,
onModified: widget.onModified,
context: context,
);
}