SwitchPreferenceTile constructor

const SwitchPreferenceTile({
  1. Key? key,
  2. required Widget title,
  3. required bool currentValue,
  4. SettingsUpdateCallback? onUpdate,
  5. MarketingNotificationSettingsUpdateCallback? onUpdateMarketingNotification,
  6. bool isMarketingNotification = false,
})

Implementation

const SwitchPreferenceTile({
  super.key,
  required this.title,
  required this.currentValue,
  this.onUpdate,
  this.onUpdateMarketingNotification,
  this.isMarketingNotification = false,
});