SwitchPreference constructor
const
SwitchPreference(})
Implementation
const SwitchPreference(
this.title,
this.localKey, {
super.key,
this.summary,
this.summaryPrefix,
this.summarySuffix,
this.defaultValue = false,
this.leading,
this.enabled = true,
this.useValueAsSummary = false,
this.onChange,
});